QUERY PLAN
HashAggregate (cost=347.29..348.83 rows=154 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..346.33 rows=191 width=8)
Filter: (client_id = ANY ('{1661,146,982,2538,2616,1933,3081,3372,3364,3344}'::integer[]))