QUERY PLAN
Group (cost=28481.61..28481.74 rows=4 width=36)
Group Key: code
-> Sort (cost=28481.61..28481.63 rows=8 width=4)
Sort Key: code
-> Gather (cost=28480.65..28481.49 rows=8 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=27480.65..27480.69 rows=4 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..27268.93 rows=84685 width=4)
Filter: (code IS NOT NULL)