Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings - Mailing list pgsql-bugs

From Robert Haas
Subject Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings
Date
Msg-id CA+TgmoaZvJnYhXeou4CBFJcKn9OVN5uVHOwBaoRp6pe5E+v7og@mail.gmail.com
Whole thread Raw
In response to Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
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+.

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

pgsql-bugs by date:

Previous
From: Ignas Mikalajunas
Date:
Subject: Re: BUG #6632: "before delete" triggers that delete rows from the same table can invalidate constraints
Next
From: Robert Haas
Date:
Subject: Re: hstore parser incorrectly handles malformed input