QUERY PLAN
HashAggregate (cost=330.63..332.13 rows=150 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=187 width=8)
Filter: (client_id = ANY ('{24,101,54,2491,18,2187,2806,3316,3290,2737}'::integer[]))