From: Bradley Kieser <brad@kieser.net>
To: PgSQL ADMIN <pgsql-admin@postgresql.org>
Subject: Script terminates even though ON_ERROR_STOP not set
Date: Fri, 14 Jan 2005 12:03:02 +0000
Message-ID: <41E7B4F6.8070505@kieser.net> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: brad@kieser.net
Subject: Re: Script terminates even though ON_ERROR_STOP not set
In-Reply-To: <41E7B4F6.8070505@kieser.net>
References: <41E7B4F6.8070505@kieser.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox