Re: psql scripting tutorials

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: psql scripting tutorials
Дата
Msg-id 20080911143252.GA9492@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: psql scripting tutorials  (Harald Fuchs <hari.fuchs@gmail.com>)
Список pgsql-general
Harald Fuchs escribió:

> Nice trick, but when I try the following variant:
>
>   psql -v TEST=16 -c 'select :TEST as "input"'
>
> I get
>
>   ERROR:  syntax error at or near ":"
>   LINE 1: select :TEST as "input"
>
> This seems to be contrary to the psql manual page:
>
>  These assignments are done during a very early stage of start-up...

Seems like a bug in -c ...

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Brad Nicholson
Дата:
Сообщение: Re: "Healing" a table after massive updates
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: "Healing" a table after massive updates