QUERY PLAN
HashAggregate (cost=322.87..325.80 rows=293 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..320.27 rows=521 width=8)
Filter: (client_id = ANY ('{189,54,1307,528,304,107,1121,518,3317}'::integer[]))