Re: Support for idempotent schema changes?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Support for idempotent schema changes?
Дата
Msg-id 200703040844.39308.peter_e@gmx.net
обсуждение исходный текст
Ответ на Support for idempotent schema changes?  ("David Lowe" <dlowe@airplay.com>)
Ответы Re: Support for idempotent schema changes?  (Flemming Frandsen <ff@partyticket.net>)
Re: Support for idempotent schema changes?  ("David Lowe" <dlowe@airplay.com>)
Список pgsql-general
David Lowe wrote:
> So how can I make statements of the form:

> *      alter table only customers add constraint
> a_previously_missed_constraint unique (a, b, c);
>
> *      add column points int4 not null default 0;

> idempotent?

You just ignore the error if the object already exists.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

В списке pgsql-general по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: PG Dump 8.2
Следующее
От: Stefan Kaltenbrunner
Дата:
Сообщение: Re: Configure can't find com_err on OpenBSD for --with-krb5