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 ('{4128,4090,4080,4074,4045,4028,4008,3969,3906,3873,3841,3807,3797,3781,3776,3749,3740,3709,3708,3707}'::integer[]))