Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLYH4-00081T-Pr for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Dec 2016 16:37:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cLYH4-0005Ic-Cs for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Dec 2016 16:37:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cLYGP-0004ZK-Fl for pgsql-bugs@postgresql.org; Mon, 26 Dec 2016 16:36:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cLYGM-0005VU-Dy for pgsql-bugs@postgresql.org; Mon, 26 Dec 2016 16:36:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uBQGaPU4005702; Mon, 26 Dec 2016 11:36:25 -0500 From: Tom Lane To: Nathanael Terrien cc: "'Terje Elde'" , "pgsql-bugs@postgresql.org" Subject: Re: BUG #14478: Right Trim trims too much? In-reply-to: References: <20161226093634.10135.18443@wrigleys.postgresql.org> <8D6B90F8-6952-4342-93E5-66F7CDE42D66@elde.net> Comments: In-reply-to Nathanael Terrien message dated "Mon, 26 Dec 2016 14:56:32 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5700.1482770185.1@sss.pgh.pa.us> Date: Mon, 26 Dec 2016 11:36:25 -0500 Message-ID: <5701.1482770185@sss.pgh.pa.us> X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Nathanael Terrien 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs