QUERY PLAN
GroupAggregate (cost=446.89..447.79 rows=51 width=12)
Group Key: project_id
-> Sort (cost=446.89..447.02 rows=52 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..445.41 rows=52 width=8)
Filter: (project_id = ANY ('{3927,3934,3930,3929,3928,3926,3925,3924,3751,3922,3919,3882,3920,3883,3916,3841,3910,3906,3911,3900}'::integer[]))