QUERY PLAN
HashAggregate (cost=332.70..335.82 rows=312 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=602 width=8)
Filter: (client_id = ANY ('{2805,2150,90,528,3293,304,2177,107,1301,1121}'::integer[]))