QUERY PLAN
GroupAggregate (cost=448.49..449.39 rows=51 width=12)
Group Key: project_id
-> Sort (cost=448.49..448.62 rows=52 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..447.01 rows=52 width=8)
Filter: (project_id = ANY ('{3935,3927,3751,3899,3890,3886,3872,3857,3855,3816,3786,3767,3764,3760,3752,3744,3723,3714,3679,3653}'::integer[]))