QUERY PLAN
HashAggregate (cost=330.60..332.06 rows=146 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=181 width=8)
Filter: (client_id = ANY ('{3332,2032,189,2600,54,2491,18,2187,21,2186}'::integer[]))