QUERY PLAN
Finalize Aggregate (cost=28537.95..28537.96 rows=1 width=8)
-> Gather (cost=28537.73..28537.94 rows=2 width=8)
Workers Planned: 2
-> Partial Aggregate (cost=27537.73..27537.74 rows=1 width=8)
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..27529.94 rows=3116 width=0)
Filter: ((device_type = '6'::smallint) AND ((schema)::text = 'a57be577deb434'::text))