QUERY PLAN
GroupAggregate (cost=425.67..426.66 rows=56 width=12)
Group Key: project_id
-> Sort (cost=425.67..425.81 rows=58 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..423.97 rows=58 width=8)
Filter: (project_id = ANY ('{3758,3689,3594,3580,3452,3796,3801,3665,3784,3781,3727,3725,3703,3256,2777,3488,3800,3793,3794,3792}'::integer[]))