QUERY PLAN
HashAggregate (cost=330.67..332.22 rows=155 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=195 width=8)
Filter: (client_id = ANY ('{2491,18,1659,121,531,43,42,10,2131,2021}'::integer[]))