QUERY PLAN
Group (cost=27573.63..27573.76 rows=4 width=36)
Group Key: code
-> Sort (cost=27573.63..27573.65 rows=8 width=4)
Sort Key: code
-> Gather (cost=27572.67..27573.51 rows=8 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=26572.67..26572.71 rows=4 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..26367.95 rows=81887 width=4)
Filter: (code IS NOT NULL)