QUERY PLAN
HashAggregate (cost=352.60..354.10 rows=150 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=185 width=8)
Filter: (client_id = ANY ('{543,93,2713,2150,301,1676,2225,1141,1637,2095}'::integer[]))