Nathanael Terrien <nte(at)mustinformatique(dot)fr> writes:
> Ok, I misunderstood the documentation. The way it works is logical.
Actually, we changed the docs about the *trim functions recently because
somebody else made the same mistake. The examples, in particular,
weren't chosen in a way that would make it clear that the characters-
to-trim are sets not strings. You can see the new wording at
https://www.postgresql.org/docs/devel/static/functions-string.html
That will propagate into the released-version pages at the next
minor updates (scheduled for early Feb).
regards, tom lane