Re: psql variables

Поиск
Список
Период
Сортировка
От George Essig
Тема Re: psql variables
Дата
Msg-id 6744b38505032107393b19cba4@mail.gmail.com
обсуждение исходный текст
Ответ на psql variables  (Paul Cunningham <paul@blueseacommunications.com>)
Список pgsql-general
On Mon, 14 Mar 2005 11:06:32 -0500, Paul Cunningham
<paul@blueseacommunications.com> wrote:
> I use a bash script (similar to following example) to update tables.
>
> psql -v passed_in_var=\'some_value\'  -f script_name ....
>
> Is it possible to pass a value back from psql to the bash script?

You can use  '\! [ command ]' to execute shell commands within psql.
This may not be what you want though.

George Essig

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

Предыдущее
От: Hrishikesh Deshmukh
Дата:
Сообщение: Time Stamp
Следующее
От: "Sean Davis"
Дата:
Сообщение: Re: pl/perl problem