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 ('{4174,1018,4184,4186,4185,4182,4183,4181,4173,4179,4079,4170,4175,4155,4172,4171,4151,4169,4168,4144}'::integer[]))