QUERY PLAN
HashAggregate (cost=333.45..336.84 rows=339 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=752 width=8)
Filter: (client_id = ANY ('{3337,101,54,2737,2094,1276,149,3308,1121,3324}'::integer[]))