QUERY PLAN
HashAggregate (cost=352.26..353.29 rows=103 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=118 width=8)
Filter: (client_id = ANY ('{1661,3375,2128,2492,3360,3361,3329,2547,2136,2130}'::integer[]))