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