QUERY PLAN
HashAggregate (cost=331.70..334.25 rows=255 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=402 width=8)
Filter: (client_id = ANY ('{97,3312,2818,3284,3262,287,2202,497,1663,12}'::integer[]))