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