QUERY PLAN
GroupAggregate (cost=342.55..342.88 rows=19 width=12)
Group Key: project_id
-> Sort (cost=342.55..342.59 rows=19 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..342.14 rows=19 width=8)
Filter: (project_id = ANY ('{4097,4114,4124,4127,4120,4111,4052}'::integer[]))