QUERY PLAN
Group (cost=28320.39..28320.52 rows=4 width=36)
Group Key: code
-> Sort (cost=28320.39..28320.41 rows=8 width=4)
Sort Key: code
-> Gather (cost=28319.43..28320.27 rows=8 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=27319.43..27319.47 rows=4 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..27108.96 rows=84188 width=4)
Filter: (code IS NOT NULL)