QUERY PLAN
HashAggregate (cost=335.32..339.06 rows=374 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=1126 width=8)
Filter: (client_id = ANY ('{2815,101,2806,3316,89,20,2492,918,3284,2818}'::integer[]))