Magnus Hagander wrote:
> That also requires a "reasonable shell", which all platforms don't
> have...
I think doing any sort of reasonable scripting around psql requires a
reasonable shell. Or next someone will suggest implementing loops and
conditionals in psql.
For that matter, I suspect in any shell you can read the required
variables beforehand and pass them into psql through arguments. So the
use case for reading variables during a psql script seems questionable
anyway (without conditionals, at least).
--
Peter Eisentraut
http://developer.postgresql.org/~petere/