QUERY PLAN
GroupAggregate (cost=299.56..299.70 rows=8 width=12)
Group Key: project_id
-> Sort (cost=299.56..299.58 rows=8 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..299.44 rows=8 width=8)
Filter: (project_id = ANY ('{4168,3568,3544}'::integer[]))