QUERY PLAN
HashAggregate (cost=330.75..332.40 rows=165 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=211 width=8)
Filter: (client_id = ANY ('{3337,2815,24,3316,2737,2166,2492,497,3308,2818}'::integer[]))