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 ('{2236,2485,2481,2281,2233,2216,2268,2235,3337,3336}'::integer[]))