"Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> writes:
>> I understand the difficulties, but ISTM that getting
>> "psql -f scriptfile"
>> working could be a Good Thing (tm).
> If you have any suggestions on how we can trap errors I'm all ears
I believe you can look at psql's exit status. (You may need to do
something to ensure it exits on first error, too.)
However the existing solution is probably good enough for now.
regards, tom lane