QUERY PLAN
HashAggregate (cost=376.31..379.02 rows=271 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..374.17 rows=427 width=8)
Filter: (client_id = ANY ('{3354,399,2616,2538,146,1661,982,2166,1301,3330}'::integer[]))