QUERY PLAN
HashAggregate (cost=352.20..353.13 rows=93 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=105 width=8)
Filter: (client_id = ANY ('{1661,3375,3281,3284,3312,3379,2032,141,2242,3326}'::integer[]))