QUERY PLAN
Group (cost=22948.34..22948.44 rows=3 width=36)
Group Key: code
-> Sort (cost=22948.34..22948.36 rows=6 width=4)
Sort Key: code
-> Gather (cost=22947.64..22948.27 rows=6 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=21947.64..21947.67 rows=3 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..21802.12 rows=58208 width=4)
Filter: (code IS NOT NULL)