QUERY PLAN
Group (cost=30673.85..30673.98 rows=4 width=36)
Group Key: code
-> Sort (cost=30673.85..30673.87 rows=8 width=4)
Sort Key: code
-> Gather (cost=30672.89..30673.73 rows=8 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=29672.89..29672.93 rows=4 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..29448.92 rows=89586 width=4)
Filter: (code IS NOT NULL)