QUERY PLAN
GroupAggregate (cost=376.57..378.09 rows=83 width=12)
Group Key: client_id
-> Sort (cost=376.57..376.80 rows=92 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..373.56 rows=92 width=8)
Filter: (client_id = ANY ('{3424,42,3455,3453,3442,3410,3441,3440,3439,3394}'::integer[]))