QUERY PLAN
HashAggregate (cost=331.05..333.03 rows=198 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=271 width=8)
Filter: (client_id = ANY ('{141,3056,2032,2736,189,2182,24,101,54,18}'::integer[]))