QUERY PLAN
Group (cost=29951.59..29951.72 rows=4 width=36)
Group Key: code
-> Sort (cost=29951.59..29951.61 rows=8 width=4)
Sort Key: code
-> Gather (cost=29950.63..29951.47 rows=8 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=28950.63..28950.67 rows=4 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..28732.12 rows=87406 width=4)
Filter: (code IS NOT NULL)