QUERY PLAN
GroupAggregate (cost=484.50..486.31 rows=101 width=12)
Group Key: project_id
-> Sort (cost=484.50..484.77 rows=106 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..480.94 rows=106 width=8)
Filter: (project_id = ANY ('{1018,4184,4186,4126,2290,4024,4185,4182,4183,4181,4174,4146,3957,3796,3854,4173,4180,4179,4178,4177}'::integer[]))