Re: quoting psql varible as identifier

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: quoting psql varible as identifier
Дата
Msg-id 2855.1262116643@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: quoting psql varible as identifier  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: quoting psql varible as identifier  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> 2009/12/29 Alvaro Herrera <alvherre@commandprompt.com>:
>> Can we use a trick similar to pg_dump's?

> I see it - we can move function (content) fmtId from dumputils.c to libpq.

This is not a good idea.  pg_dump can be expected to be up-to-date with
the backend's keyword list, but libpq cannot.

Just quote the thing unconditionally.  It's not worth working harder
than that anyway.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: quoting psql varible as identifier
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: quoting psql varible as identifier