pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: stuart@stuartbishop.net
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings
Date: Wed, 2 May 2012 14:21:10 -0400
Message-ID: <20120502182110.GE21098@momjian.us> (raw)
In-Reply-To: <E1SPZ9y-0003PX-Qz@wrigleys.postgresql.org>
References: <E1SPZ9y-0003PX-Qz@wrigleys.postgresql.org>

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 <TAB> 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  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



view thread (8+ messages)  latest in thread

Message-ID: <20120502182110.GE21098@momjian.us>
Permalink:  ../20120502182110.GE21098@momjian.us/
Also on:    postgresql.org/message-id/20120502182110.GE21098@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, stuart@stuartbishop.net
  Subject: Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings
  In-Reply-To: <20120502182110.GE21098@momjian.us>
  References: <E1SPZ9y-0003PX-Qz@wrigleys.postgresql.org> <20120502182110.GE21098@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox