QUERY PLAN
GroupAggregate (cost=482.17..483.40 rows=69 width=12)
Group Key: project_id
-> Sort (cost=482.17..482.35 rows=71 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..479.99 rows=71 width=8)
Filter: (project_id = ANY ('{3269,3318,3216,3300,3281,3251,3265,3276,3274,3263,3235,3246,3225,3209,3208,3201,3195,3157,3148,3073}'::integer[]))