QUERY PLAN
GroupAggregate (cost=453.57..454.49 rows=52 width=12)
Group Key: project_id
-> Sort (cost=453.57..453.70 rows=53 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..452.05 rows=53 width=8)
Filter: (project_id = ANY ('{3870,3901,3927,3857,3959,3950,3796,3854,3878,3880,3955,3957,3947,3874,3934,3945,3780,3833,3846,3758}'::integer[]))