Re: BUG #14478: Right Trim trims too much?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nathanael Terrien <nte(at)mustinformatique(dot)fr>
Cc: "'Terje Elde'" <terje(at)elde(dot)net>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14478: Right Trim trims too much?
Date: 2016-12-26 16:36:25
Message-ID: 5701.1482770185@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Nathanael Terrien 2016-12-26 16:47:29 Re: BUG #14478: Right Trim trims too much?
Previous Message Nathanael Terrien 2016-12-26 14:56:32 Re: BUG #14478: Right Trim trims too much?