QUERY PLAN
HashAggregate (cost=374.53..376.08 rows=155 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..373.56 rows=193 width=8)
Filter: (client_id = ANY ('{2616,2538,146,1661,982,2593,2150,3315,3081,1933}'::integer[]))