Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 24C42E951D6 for ; Wed, 2 May 2012 15:21:25 -0300 (ADT) Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SPeB1-0001Wg-Fq for pgsql-bugs@postgresql.org; Wed, 02 May 2012 18:21:24 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1SPeAo-0003RK-D8; Wed, 02 May 2012 14:21:10 -0400 Date: Wed, 2 May 2012 14:21:10 -0400 From: Bruce Momjian To: stuart@stuartbishop.net Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings Message-ID: <20120502182110.GE21098@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/7 X-Sequence-Number: 32978 On Wed, May 02, 2012 at 12:59:58PM +0000, stuart@stuartbishop.net wrote: > The following bug has been logged on the website: > > Bug reference: 6624 > Logged by: Stuart Bishop > Email address: stuart@stuartbishop.net > PostgreSQL version: 9.1.3 > Operating system: Ununtu > Description: > > psql tab completion can emit WARNING messages if escape_string_warning is > set to true. The trigger seems to be an identifier containing a single > backslash. > > # CREATE SEQUENCE "\foo"; > CREATE SEQUENCE > # \ds "\ I am unable to reproduce this failure on my copy of 9.1.3. Have you perhaps changed any server settings? --------------------------------------------------------------------------- > > (at this point, hit to trigger completion) > > # drop sequence "\WARNING: nonstandard use of \\ in a string literal > LINE 1: ... substring(pg_catalog.quote_ident(c.relname),1,2)='"\\' AND ... > ^ > HINT: Use the escape string syntax for backslashes, e.g., E'\\'. > WARNING: nonstandard use of \\ in a string literal > LINE 3: ...ing(pg_catalog.quote_ident(n.nspname) || '.',1,2)='"\\' AND ... > ^ > HINT: Use the escape string syntax for backslashes, e.g., E'\\'. > WARNING: nonstandard use of \\ in a string literal > LINE 3: ...alog.quote_ident(nspname) || '.',1,2) = substring('"\\',1,pg... > ^ > HINT: Use the escape string syntax for backslashes, e.g., E'\\'. > WARNING: nonstandard use of \\ in a string literal > LINE 5: ... || '.' || pg_catalog.quote_ident(c.relname),1,2)='"\\' AND ... > ^ > HINT: Use the escape string syntax for backslashes, e.g., E'\\'. > WARNING: nonstandard use of \\ in a string literal > LINE 5: ...og.quote_ident(n.nspname) || '.',1,2) = substring('"\\',1,pg... > ^ > HINT: Use the escape string syntax for backslashes, e.g., E'\\'. > WARNING: nonstandard use of \\ in a string literal > LINE 5: ...alog.quote_ident(nspname) || '.',1,2) = substring('"\\',1,pg... > ^ > HINT: Use the escape string syntax for backslashes, e.g., E'\\'. > foo" ; > > > > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-bugs -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +