QUERY PLAN
HashAggregate (cost=361.50..363.45 rows=195 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..360.20 rows=260 width=8)
Filter: (client_id = ANY ('{518,531,1225,3284,2186,3312,141,304,2146,24}'::integer[]))