QUERY PLAN
GroupAggregate (cost=464.60..465.52 rows=52 width=12)
Group Key: project_id
-> Sort (cost=464.60..464.74 rows=53 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..463.09 rows=53 width=8)
Filter: (project_id = ANY ('{4048,4047,4014,3950,3927,3949,3751,3899,3890,3886,3872,3857,3855,3816,3813,3786,3767,3764,3760,3752}'::integer[]))