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

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings
Дата
Msg-id CA+TgmoaZvJnYhXeou4CBFJcKn9OVN5uVHOwBaoRp6pe5E+v7og@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #6624: Tab completion of identifier containing single backslash triggers warnings
Список 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 по дате отправления:

Предыдущее
От: Ignas Mikalajunas
Дата:
Сообщение: Re: BUG #6632: "before delete" triggers that delete rows from the same table can invalidate constraints
Следующее
От: Robert Haas
Дата:
Сообщение: Re: hstore parser incorrectly handles malformed input