QUERY PLAN
HashAggregate (cost=330.66..332.19 rows=153 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=192 width=8)
Filter: (client_id = ANY ('{3081,2205,1933,2616,2538,982,146,1661,3334,3327}'::integer[]))