QUERY PLAN
Group (cost=28892.43..28892.56 rows=4 width=36)
Group Key: code
-> Sort (cost=28892.43..28892.45 rows=8 width=4)
Sort Key: code
-> Gather (cost=28891.47..28892.31 rows=8 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=27891.47..27891.51 rows=4 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..27676.59 rows=85950 width=4)
Filter: (code IS NOT NULL)