Re: postgresql ddl scripts - drop object fails entire script

From: Alban Hertroys <alban(at)magproductions(dot)nl>
To: timasmith(at)hotmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: postgresql ddl scripts - drop object fails entire script
Date: 2006-09-27 10:29:49
Message-ID: 451A529D.8040401@magproductions.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

timasmith(at)hotmail(dot)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(at)magproductions(dot)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 //

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2006-09-27 10:37:23 reply-to address broken (Was: Re: postgresql ddl scripts - drop object fails entire script)
Previous Message Martijn van Oosterhout 2006-09-27 10:26:49 Re: Insert/select union bug