QUERY PLAN
Finalize Aggregate (cost=27337.56..27337.57 rows=1 width=8)
-> Gather (cost=27337.34..27337.55 rows=2 width=8)
Workers Planned: 2
-> Partial Aggregate (cost=26337.34..26337.35 rows=1 width=8)
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..26329.89 rows=2980 width=0)
Filter: ((device_type = '6'::smallint) AND ((schema)::text = 'a57be577deb434'::text))