QUERY PLAN
GroupAggregate (cost=375.14..375.77 rows=36 width=12)
Group Key: project_id
-> Sort (cost=375.14..375.23 rows=37 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..374.17 rows=37 width=8)
Filter: (project_id = ANY ('{4055,4103,4130,3196,4085,4101,4100,4058,3798,3932}'::integer[]))