Re: Support for idempotent schema changes? - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Support for idempotent schema changes?
Date
Msg-id 200703040844.39308.peter_e@gmx.net
Whole thread Raw
In response to Support for idempotent schema changes?  ("David Lowe" <dlowe@airplay.com>)
Responses Re: Support for idempotent schema changes?
Re: Support for idempotent schema changes?
List 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 by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: PG Dump 8.2
Next
From: Stefan Kaltenbrunner
Date:
Subject: Re: Configure can't find com_err on OpenBSD for --with-krb5