QUERY PLAN
Finalize Aggregate (cost=27418.09..27418.10 rows=1 width=8)
-> Gather (cost=27417.88..27418.08 rows=2 width=8)
Workers Planned: 2
-> Partial Aggregate (cost=26417.88..26417.88 rows=1 width=8)
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..26409.55 rows=3330 width=0)
Filter: ((device_type = '0'::smallint) AND ((schema)::text = 'a57be577deb434'::text))