Andy Gimblett <A(dot)M(dot)Gimblett(at)swansea(dot)ac(dot)uk> writes:
> Question: is there any way to use environment variables (or something
> similar) in my saved SQL code, and have them expanded at runtime?
Only by preprocessing the script. Have you considered something like
... WHERE $foo = ...
EOF | psql ...
regards, tom lane
In response to
pgsql-general by date
|Next:||From: Michael Fuhr||Date: 2004-10-31 15:41:06|
|Subject: Re: View's rule on delete problem|
|Previous:||From: Tom Lane||Date: 2004-10-31 15:29:15|
|Subject: Re: View's rule on delete problem |