QUERY PLAN
HashAggregate (cost=374.35..375.67 rows=132 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..373.56 rows=158 width=8)
Filter: (client_id = ANY ('{2182,3411,304,402,3367,2242,3400,3342,3381,2699}'::integer[]))