Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBy5D-00014r-NV for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Nov 2016 06:09:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cBy5D-0006qw-A1 for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Nov 2016 06:09:31 +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 1cBy5C-0006qS-69 for pgsql-bugs@postgresql.org; Wed, 30 Nov 2016 06:09:30 +0000 Received: from c.mail.sonic.net ([64.142.111.80]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cBy59-0003BZ-Pg for pgsql-bugs@postgresql.org; Wed, 30 Nov 2016 06:09:29 +0000 Received: from engels (162-236-13-58.lightspeed.sntcca.sbcglobal.net [162.236.13.58]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id uAU69N6n029716 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA256 bits=128 verify=NOT); Tue, 29 Nov 2016 22:09:24 -0800 Date: Tue, 29 Nov 2016 22:09:32 -0800 From: David Gould To: mark.pether@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14441: trim function bug (hit a keyword somewhere internally) Message-ID: <20161129220932.123e13a1@engels> In-Reply-To: <20161130011710.6539.53657@wrigleys.postgresql.org> References: <20161130011710.6539.53657@wrigleys.postgresql.org> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVYO+LL9YE3Pjb6Zk5Q/P3PRPBBmeqJE0kkWmBCVmkdmq0VpVXy3IiASnUnmQruyq3MywuqjtOPk2/8TPeozwXMD X-Sonic-ID: C;xkt0isO25hGg3YYhDwv+pw== M;ztmrisO25hGg3YYhDwv+pw== X-Spam-Flag: No X-Sonic-Spam-Details: 1.0/5.0 by cerberusd X-Pg-Spam-Score: -5.5 (-----) 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 On Wed, 30 Nov 2016 01:17:10 +0000 mark.pether@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 14441 > Logged by: mark pether > Email address: mark.pether@gmail.com > PostgreSQL version: 9.5.4 > Operating system: macos > Description: > > select TRIM(LEADING 'EXCLUDE' FROM 'C001'); > > Will incorrectly strip off the 'C' leaving '001'. Perhaps I'm misreading the doc, but that looks like the correct result. That is, any character in 'EXCLUDE' will be stripped from the leading part of 'C001', ie, the 'C'. Why do you think this is a bug? -dg -- David Gould daveg@sonic.net If simplicity worked, the world would be overrun with insects. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs