QUERY PLAN
GroupAggregate (cost=352.77..353.48 rows=40 width=12)
Group Key: project_id
-> Sort (cost=352.77..352.88 rows=41 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=41 width=8)
Filter: (project_id = ANY ('{3577,3874,3578,3507,3749,3623,3723,1352,3714,3144}'::integer[]))