QUERY PLAN
Finalize Aggregate (cost=27442.77..27442.78 rows=1 width=8)
-> Gather (cost=27442.55..27442.76 rows=2 width=8)
Workers Planned: 2
-> Partial Aggregate (cost=26442.55..26442.56 rows=1 width=8)
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..26409.55 rows=13201 width=0)
Filter: ((device_type = '2'::smallint) AND ((schema)::text = 'a57be577deb434'::text))