Re: postgresql ddl scripts - drop object fails entire script - Mailing list pgsql-general

From Alban Hertroys
Subject Re: postgresql ddl scripts - drop object fails entire script
Date
Msg-id 451A529D.8040401@magproductions.nl
Whole thread Raw
In response to postgresql ddl scripts - drop object fails entire script  (timasmith@hotmail.com)
List pgsql-general
timasmith@hotmail.com wrote:
> On the one hand I like how the schema scripts fail when there is a
> single problem with a DDL statement.
>
> On the other hand sometimes it is a pain - especially to take out all
> the 'drop sequence', 'drop table' etc commands when creating a new
> database.

Until 8.2 is available, maybe wrapping your DDL statements in a pl/pgsql
SP will work. pl/pgsql has exceptions...
I haven't tried this, but I expect it will work.

--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
    7500 AK Enschede

// Integrate Your World //

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Insert/select union bug
Next
From: jef peeraer
Date:
Subject: pl/pgsql NEW variable substitution