QUERY PLAN
GroupAggregate (cost=291.64..291.83 rows=11 width=12)
Group Key: project_id
-> Sort (cost=291.64..291.67 rows=11 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..291.45 rows=11 width=8)
Filter: (project_id = ANY ('{3960,3958,3959,1791}'::integer[]))