QUERY PLAN
GroupAggregate (cost=376.70..378.07 rows=77 width=12)
Group Key: project_id
-> Sort (cost=376.70..376.90 rows=80 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..374.17 rows=80 width=8)
Filter: (project_id = ANY ('{4024,4177,263,2504,1791,1111,4136,4139,4017,3754}'::integer[]))