QUERY PLAN
GroupAggregate (cost=396.36..396.93 rows=33 width=12)
Group Key: project_id
-> Sort (cost=396.36..396.44 rows=33 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..395.52 rows=33 width=8)
Filter: (project_id = ANY ('{4184,4182,4183,4181,4173,4171,4152,4150,4158,2939,4179,4175}'::integer[]))