QUERY PLAN
Finalize Aggregate (cost=28666.75..28666.76 rows=1 width=8)
-> Gather (cost=28666.53..28666.74 rows=2 width=8)
Workers Planned: 2
-> Partial Aggregate (cost=27666.53..27666.54 rows=1 width=8)
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..27657.81 rows=3488 width=0)
Filter: ((device_type = '0'::smallint) AND ((schema)::text = 'a57be577deb434'::text))