QUERY PLAN
GroupAggregate (cost=332.30..333.66 rows=74 width=12)
Group Key: client_id
-> Sort (cost=332.30..332.51 rows=82 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=82 width=8)
Filter: (client_id = ANY ('{3332,2032,2600,2491,18,2187,21,2186,1659,2713}'::integer[]))