QUERY PLAN
GroupAggregate (cost=352.74..353.43 rows=39 width=12)
Group Key: project_id
-> Sort (cost=352.74..352.84 rows=40 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=40 width=8)
Filter: (project_id = ANY ('{1791,3577,3955,3927,3957,3947,3874,3934,3950,3716}'::integer[]))