Script terminates even though ON_ERROR_STOP not set

From: Bradley Kieser <brad(at)kieser(dot)net>
To: PgSQL ADMIN <pgsql-admin(at)postgresql(dot)org>
Subject: Script terminates even though ON_ERROR_STOP not set
Date: 2005-01-14 12:03:02
Message-ID: 41E7B4F6.8070505@kieser.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I have an admin script that drops a schema and then recreates it (quick
way to refresh from backup). However, if the schema doesn't exist, the
drop errors, as you would expect. The next SQL command, the schema
create, is never executed.

I do not have ON_ERROR_STOP set so why is this happening? I don't want
to split down to two calls of psql if possible, which is the present
work-around. Would prefer to solve the problem.

Thanks,

Brad

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Dick Davies 2005-01-14 13:59:26 Re: pam
Previous Message Michael Fuhr 2005-01-14 10:00:19 Re: ERROR: btree: index item size 2892 exceeds maximum 2713