QUERY PLAN
GroupAggregate (cost=361.36..362.11 rows=42 width=12)
Group Key: project_id
-> Sort (cost=361.36..361.47 rows=43 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..360.20 rows=43 width=8)
Filter: (project_id = ANY ('{2587,3933,3935,3788,3772,3737,3642,3392,3364,3258}'::integer[]))