QUERY PLAN
GroupAggregate (cost=439.86..440.83 rows=55 width=12)
Group Key: project_id
-> Sort (cost=439.86..440.00 rows=56 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..438.23 rows=56 width=8)
Filter: (project_id = ANY ('{4139,4059,3956,3849,3919,3882,3917,3883,3898,3745,3538,3301,3105,3049,2831,2851}'::integer[]))