QUERY PLAN
HashAggregate (cost=375.80..378.56 rows=276 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..373.56 rows=446 width=8)
Filter: (client_id = ANY ('{399,2616,2538,146,1661,982,2166,1301,3330,2182}'::integer[]))