Re: [GENERAL] psql variables

2005-03-26 Thread Oleg Bartunov
On Fri, 25 Mar 2005, Patrick TJ McPhee wrote: In article <[EMAIL PROTECTED]>, Paul Cunningham <[EMAIL PROTECTED]> 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

Re: [GENERAL] psql variables

2005-03-26 Thread Patrick TJ McPhee
In article <[EMAIL PROTECTED]>, Paul Cunningham <[EMAIL PROTECTED]> 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? If you run it like

Re: [GENERAL] psql variables

2005-03-21 Thread George Essig
On Mon, 14 Mar 2005 11:06:32 -0500, Paul Cunningham <[EMAIL PROTECTED]> 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 '

[GENERAL] psql variables

2005-03-20 Thread Paul Cunningham
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? Thanks, Paul Cunningham ---(end of broadcast)--- TIP 4: D