QUERY PLAN
GroupAggregate (cost=281.53..281.67 rows=8 width=12)
Group Key: project_id
-> Sort (cost=281.53..281.55 rows=8 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..281.41 rows=8 width=8)
Filter: (project_id = ANY ('{3807,3907,3908}'::integer[]))