QUERY PLAN
GroupAggregate (cost=311.84..312.13 rows=16 width=12)
Group Key: project_id
-> Sort (cost=311.84..311.88 rows=16 width=8)
Sort Key: project_id
-> Seq Scan on tbl_cases (cost=0.00..311.52 rows=16 width=8)
Filter: (project_id = ANY ('{3954,3952,3942,3864,3867,3820}'::integer[]))