QUERY PLAN
GroupAggregate (cost=481.84..482.90 rows=60 width=12)
Group Key: project_id
-> Sort (cost=481.84..481.99 rows=62 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..479.99 rows=62 width=8)
Filter: (project_id = ANY ('{2,3,4,5,6,7,8,10,11,12,13,14,15,16,18,19,20,21,22,23}'::integer[]))