QUERY PLAN
GroupAggregate (cost=352.32..352.79 rows=27 width=12)
Group Key: project_id
-> Sort (cost=352.32..352.38 rows=27 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=27 width=8)
Filter: (project_id = ANY ('{3957,3947,3934,3950,3720,3868,3945,3946,3933,3895}'::integer[]))