QUERY PLAN
Group (cost=24505.54..24505.67 rows=4 width=36)
Group Key: code
-> Sort (cost=24505.54..24505.56 rows=8 width=4)
Sort Key: code
-> Gather (cost=24504.58..24505.42 rows=8 width=4)
Workers Planned: 2
-> Partial HashAggregate (cost=23504.58..23504.62 rows=4 width=4)
Group Key: code
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..23349.88 rows=61881 width=4)
Filter: (code IS NOT NULL)