QUERY PLAN
Group (cost=27174.59..27174.65 rows=2 width=36)
Group Key: code
-> Sort (cost=27174.59..27174.60 rows=4 width=4)
Sort Key: code
-> Gather (cost=27174.13..27174.55 rows=4 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=26174.13..26174.15 rows=2 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..25928.57 rows=98224 width=4)
Filter: (code IS NOT NULL)