QUERY PLAN
GroupAggregate (cost=330.93..331.70 rows=43 width=12)
Group Key: client_id
-> Sort (cost=330.93..331.04 rows=45 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=45 width=8)
Filter: (client_id = ANY ('{2260,2310,2308,2307,2300,2299,2297,2433,2429,2409}'::integer[]))