QUERY PLAN
HashAggregate (cost=330.24..331.20 rows=96 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=109 width=8)
Filter: (client_id = ANY ('{3328,543,3134,94,571,2173,4,520,2158,3330}'::integer[]))