QUERY PLAN
GroupAggregate (cost=347.57..348.34 rows=43 width=12)
Group Key: client_id
-> Sort (cost=347.57..347.68 rows=45 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..346.33 rows=45 width=8)
Filter: (client_id = ANY ('{3334,3327,3311,3304,3301,3296,3286,3278,3009,2845}'::integer[]))