QUERY PLAN
GroupAggregate (cost=354.44..355.86 rows=78 width=12)
Group Key: client_id
-> Sort (cost=354.44..354.65 rows=86 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=86 width=8)
Filter: (client_id = ANY ('{399,2120,1283,39,146,1637,1158,344,574,1958}'::integer[]))