QUERY PLAN
GroupAggregate (cost=465.19..466.38 rows=67 width=12)
Group Key: project_id
-> Sort (cost=465.19..465.36 rows=69 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..463.09 rows=69 width=8)
Filter: (project_id = ANY ('{3957,4005,3976,4002,3972,4034,4037,4026,4007,3986,4041,4031,4030,4029,4020,4017,4001,3997,3996,3994}'::integer[]))