QUERY PLAN
HashAggregate (cost=353.85..355.49 rows=164 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..352.82 rows=206 width=8)
Filter: (client_id = ANY ('{2616,2538,3417,2032,14,2198,28,481}'::integer[]))