QUERY PLAN
GroupAggregate (cost=482.40..483.72 rows=74 width=12)
Group Key: project_id
-> Sort (cost=482.40..482.60 rows=77 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..479.99 rows=77 width=8)
Filter: (project_id = ANY ('{4174,4130,4124,4121,4103,4119,4094,4111,4101,4100,4102,4093,4085,4090,4087,4086,4070,4067,4007,4076}'::integer[]))