QUERY PLAN
GroupAggregate (cost=348.33..348.78 rows=26 width=12)
Group Key: project_id
-> Sort (cost=348.33..348.39 rows=26 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..347.72 rows=26 width=8)
Filter: (project_id = ANY ('{3837,3895,3820,3867,3933,3932,3936,3908,3907,3818}'::integer[]))