Re: quoting psql varible as identifier

Поиск
Список
Период
Сортировка
Искать
От
Pavel Stehule
Тема
Re: quoting psql varible as identifier
Дата
Msg-id
162867790912291219u79be0f6eh8399a9251ac855b@mail.gmail.com
Ответ на
Список
Дерево обсуждения
quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@sss.pgh.pa.us>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Alvaro Herrera <alvherre@commandprompt.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Alvaro Herrera <alvherre@commandprompt.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@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>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@sss.pgh.pa.us>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@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>
Re: quoting psql varible as identifier Tom Lane <tgl@sss.pgh.pa.us>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@sss.pgh.pa.us>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@sss.pgh.pa.us>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@sss.pgh.pa.us>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@sss.pgh.pa.us>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@sss.pgh.pa.us>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@sss.pgh.pa.us>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Tom Lane <tgl@sss.pgh.pa.us>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
Re: quoting psql varible as identifier Pavel Stehule <pavel.stehule@gmail.com>
Re: quoting psql varible as identifier Robert Haas <robertmhaas@gmail.com>
hello

here is patch

pavel@postgres:5432=# \set foo 'hello world'
pavel@postgres:5432=# SELECT :'foo' AS :"foo";
 hello world
-------------
 hello world
(1 row)

Regards
Pavel


2009/12/29 Pavel Stehule :
> 2009/12/29 Tom Lane :
>> Pavel Stehule  writes:
>>> 2009/12/29 Alvaro Herrera :
>>>> 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.
>
> I see it.
>
> Pavel
>
>>
>>                        regards, tom lane
>>
>
В списке pgsql-hackers по дате отправления
От: Pavel Stehule
Дата:
От: Tom Lane
Дата:
FAQ