Re: postgresql ddl scripts - drop object fails entire script

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: postgresql ddl scripts - drop object fails entire script
Дата
Msg-id 451A529D.8040401@magproductions.nl
обсуждение исходный текст
Ответ на postgresql ddl scripts - drop object fails entire script  (timasmith@hotmail.com)
Список 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 по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Insert/select union bug
Следующее
От: jef peeraer
Дата:
Сообщение: pl/pgsql NEW variable substitution