QUERY PLAN
GroupAggregate (cost=481.87..482.96 rows=61 width=12)
Group Key: project_id
-> Sort (cost=481.87..482.03 rows=63 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..479.99 rows=63 width=8)
Filter: (project_id = ANY ('{4102,4095,4093,4085,4090,4089,4049,4041,4027,4020,4001,3997,3996,3994,3988,3983,3954,3915,3880,3878}'::integer[]))