QUERY PLAN
GroupAggregate (cost=320.62..320.86 rows=14 width=12)
Group Key: project_id
-> Sort (cost=320.62..320.65 rows=14 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..320.35 rows=14 width=8)
Filter: (project_id = ANY ('{3109,3022,2755,2745,1366}'::integer[]))