QUERY PLAN
HashAggregate (cost=331.70..334.25 rows=255 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=402 width=8)
Filter: (client_id = ANY ('{2146,1181,2852,402,12,1663,497,2202,287,3262}'::integer[]))