QUERY PLAN
Group (cost=28460.95..28461.01 rows=2 width=36)
Group Key: code
-> Sort (cost=28460.95..28460.96 rows=4 width=4)
Sort Key: code
-> Gather (cost=28460.49..28460.91 rows=4 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=27460.49..27460.51 rows=2 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..27202.86 rows=103052 width=4)
Filter: (code IS NOT NULL)