stopping execution of a script (on error) - Mailing list pgsql-general

From Olivier Chapiteau
Subject stopping execution of a script (on error)
Date
Msg-id 01061417465900.02610@ochapiteau.dagon.pdt
Whole thread Raw
Responses Re: stopping execution of a script (on error)  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
Is it possible to stop the execution of a sql script in case of problem ?

ex :

create table newtable as select * from oldtable
DROP TABLE oldtable

I don't want to drop the table if the first instruction did not work properly


pgsql-general by date:

Previous
From: "Thalis A. Kalfigopoulos"
Date:
Subject: Re: Unique rows without a key
Next
From: Peter Eisentraut
Date:
Subject: Re: stopping execution of a script (on error)