Re: psql variables - Mailing list pgsql-general

From George Essig
Subject Re: psql variables
Date
Msg-id 6744b38505032107393b19cba4@mail.gmail.com
Whole thread Raw
In response to psql variables  (Paul Cunningham <paul@blueseacommunications.com>)
List 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 by date:

Previous
From: Hrishikesh Deshmukh
Date:
Subject: Time Stamp
Next
From: "Sean Davis"
Date:
Subject: Re: pl/perl problem