QUERY PLAN
HashAggregate (cost=330.64..332.15 rows=151 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=189 width=8)
Filter: (client_id = ANY ('{2007,2505,427,498,518,2821,3331,31,2153,2546}'::integer[]))