QUERY PLAN
GroupAggregate (cost=375.51..376.34 rows=47 width=12)
Group Key: project_id
-> Sort (cost=375.51..375.63 rows=48 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..374.17 rows=48 width=8)
Filter: (project_id = ANY ('{4056,4048,3684,3822,3446,4003,4073,3945,3834,4031}'::integer[]))