QUERY PLAN
HashAggregate (cost=352.45..353.76 rows=131 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=156 width=8)
Filter: (client_id = ANY ('{10,1331,2179,16,1438,2263,2255,77,154,318}'::integer[]))