Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 4F3291717AE3 for ; Wed, 2 May 2012 10:00:14 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SPZAB-0003Tq-Vk for pgsql-bugs@postgresql.org; Wed, 02 May 2012 13:00:13 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SPZ9z-0004IL-3Y for pgsql-bugs@postgresql.org; Wed, 02 May 2012 12:59:59 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SPZ9y-0003PX-Qz for pgsql-bugs@postgresql.org; Wed, 02 May 2012 12:59:58 +0000 Date: Wed, 02 May 2012 12:59:58 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6624: Tab completion of identifier containing single backslash triggers warnings To: pgsql-bugs@postgresql.org From: stuart@stuartbishop.net X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/5 X-Sequence-Number: 32976 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 "\ (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)=3D'"\\' 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)=3D'"\\' 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) =3D 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)=3D'"\\' 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) =3D 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) =3D substring('"\\',1,pg... ^ HINT: Use the escape string syntax for backslashes, e.g., E'\\'. foo" ;