QUERY PLAN
GroupAggregate (cost=292.28..292.54 rows=15 width=12)
Group Key: project_id
-> Sort (cost=292.28..292.32 rows=15 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..291.99 rows=15 width=8)
Filter: (project_id = ANY ('{3810,3809,3808,3807,3723,3661}'::integer[]))