script variables

From: Paul Cunningham <paulcunningham(at)sprintmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: script variables
Date: 2005-03-14 17:26:19
Message-ID: 4235C93B.1080309@sprintmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2005-03-14 17:36:13 Re: Temporary tables privileges
Previous Message Michael Fuhr 2005-03-14 16:55:45 Re: plpython function problem workaround