QUERY PLAN
Finalize Aggregate (cost=27432.27..27432.28 rows=1 width=8)
-> Gather (cost=27432.06..27432.27 rows=2 width=8)
Workers Planned: 2
-> Partial Aggregate (cost=26432.06..26432.07 rows=1 width=8)
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..26399.07 rows=13196 width=0)
Filter: ((device_type = '2'::smallint) AND ((schema)::text = 'a57be577deb434'::text))