pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Josh Kupershmidt <schmiddy@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: stuart@stuartbishop.net
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings
Date: Thu, 10 May 2012 21:50:06 -0400
Message-ID: <18430.1336701006@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoaZvJnYhXeou4CBFJcKn9OVN5uVHOwBaoRp6pe5E+v7og@mail.gmail.com>
References: <E1SPZ9y-0003PX-Qz@wrigleys.postgresql.org>
	<20120502182110.GE21098@momjian.us>
	<CAK3UJRGkNX+7qqR0VLFg+yo9nbBxsP4PaTXOGB4-k6kx5mHt2A@mail.gmail.com>
	<3034.1335997750@sss.pgh.pa.us>
	<CA+TgmoaZvJnYhXeou4CBFJcKn9OVN5uVHOwBaoRp6pe5E+v7og@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, May 2, 2012 at 6:29 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The only way we could suppress such warnings would be if we made
>> tab-complete.c use E'' strings for literals containing name prefixes;
>> which is perhaps doable but it would mean having tab-complete.c roll
>> its own string escaping rather than use any facility now available
>> from libpq.

> PQescapeLiteral will do the job, no?  At least in 9.0+.

Hmm ... it would, but then psql would fail entirely when talking to
pre-8.1 servers, so we'd need to check the server version to decide
which quoting method to use.  Do you think this is important enough to
add yet more version-specific tests to that code?

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <18430.1336701006@sss.pgh.pa.us>
Permalink:  ../18430.1336701006@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18430.1336701006@sss.pgh.pa.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: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, schmiddy@gmail.com, bruce@momjian.us, stuart@stuartbishop.net
  Subject: Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings
  In-Reply-To: <18430.1336701006@sss.pgh.pa.us>
  References: <E1SPZ9y-0003PX-Qz@wrigleys.postgresql.org> <20120502182110.GE21098@momjian.us> <CAK3UJRGkNX+7qqR0VLFg+yo9nbBxsP4PaTXOGB4-k6kx5mHt2A@mail.gmail.com> <3034.1335997750@sss.pgh.pa.us> <CA+TgmoaZvJnYhXeou4CBFJcKn9OVN5uVHOwBaoRp6pe5E+v7og@mail.gmail.com> <18430.1336701006@sss.pgh.pa.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