QUERY PLAN
HashAggregate (cost=352.19..353.11 rows=92 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=104 width=8)
Filter: (client_id = ANY ('{3329,3365,2158,46,304,402,1663,1225,2599,2173}'::integer[]))