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 ('{4087,4086,3923,4077,4084,4070,4067,4007,4065,4076,4066,4072,4058,4026,4017,3955,4068,4075,4074,4073}'::integer[]))