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,3751,3899,3890,3886,3872,3857,3855,3816,3813,3786,3767,3764,3760,3752,3744,3723,3714,3679,3653}'::integer[]))