QUERY PLAN
Group (cost=31254.77..31254.90 rows=4 width=36)
Group Key: code
-> Sort (cost=31254.77..31254.79 rows=8 width=4)
Sort Key: code
-> Gather (cost=31253.81..31254.65 rows=8 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=30253.81..30253.85 rows=4 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..30025.46 rows=91340 width=4)
Filter: (code IS NOT NULL)