Rolf Grossmann <grossman@securitas.net> writes:
>> (Of course psql is not a shell, but that's why we're discussing ...)
> Now, be careful with this statement. Personally, I have already tried to
> use psql as a shell and I think it would be really cool if you could just
> write #!/path/to/psql -f to write sql scripts.
[ straying off-topic ]
Have you tried pgbash? I haven't, but it sounds pretty cool if you
think psql and your shell should be the same thing...
regards, tom lane