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

From: Nathanael Terrien <nte(at)mustinformatique(dot)fr>
To: 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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:47:29
Message-ID: 3212b45e16da42bab4ae138ad6fb9976@EXCH2013.mustinformatique.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The new wording is clearer. Thanks.

-----Message d'origine-----
De : Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Envoyé : lundi 26 décembre 2016 17:36
À : Nathanael Terrien <nte(at)mustinformatique(dot)fr>
Cc : 'Terje Elde' <terje(at)elde(dot)net>; pgsql-bugs(at)postgresql(dot)org
Objet : Re: [BUGS] BUG #14478: Right Trim trims too much?

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

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2016-12-27 03:10:35 pg_receivexlog creating holes in WAL (HEAD only)
Previous Message Tom Lane 2016-12-26 16:36:25 Re: BUG #14478: Right Trim trims too much?