Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Kupershmidt <schmiddy(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, stuart(at)stuartbishop(dot)net, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings
Date: 2012-05-08 00:40:23
Message-ID: CA+TgmoaZvJnYhXeou4CBFJcKn9OVN5uVHOwBaoRp6pe5E+v7og@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Wed, May 2, 2012 at 6:29 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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+.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Haas 2012-05-08 00:44:23 Re: hstore parser incorrectly handles malformed input
Previous Message clay 2012-05-07 18:52:08 BUG #6633: PL/Python build does not honor PYTHON on Mac OS X