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/