Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7k7X-0004uB-4U for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Aug 2013 10:40:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V7k7W-0001lB-IR for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Aug 2013 10:40:34 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7k7U-0001jU-Us for pgsql-bugs@postgresql.org; Fri, 09 Aug 2013 10:40:33 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7k7S-0002Ry-7b for pgsql-bugs@postgresql.org; Fri, 09 Aug 2013 10:40:32 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V7k7R-0004ZM-9e for pgsql-bugs@postgresql.org; Fri, 09 Aug 2013 03:40:29 -0700 Date: Fri, 9 Aug 2013 03:40:29 -0700 (PDT) From: Romain Billon-Grand To: pgsql-bugs@postgresql.org Message-ID: <1376044829269-5766930.post@n5.nabble.com> In-Reply-To: <20130807161953.GZ11189@momjian.us> References: <20130807161953.GZ11189@momjian.us> Subject: Re: BUG #8335: trim() un-document behaviour MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 2.8 (++) 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 Running postgres 9.1.4 using pgAdmin3 on a macbook air intel OS 10.6 I just had this bug, using comma: SELECT trim(trailing texte_natif , 'DATEDENAISSANCE' ) FROM CROP returned the whole field, including the string 'DATEDENAISSANCE', but except the very first character, the column being called rtrim. Tryed to chang it to SELECT trim(trailing texte_natif from 'DATEDENAISSANCE' ) FROM CROP returned nothing ( as a dummy in postgres I can't say if it was null fields or empty string...) CROP.texte_natif is a quite long texte field,in which the STRING 'DATEDENAISSANCE can be present 0 to 3 times, and never before 20th character bests Romain -- View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-8335-trim-un-document-behaviour-tp5765221p5766930.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs