Skip site navigation (1) Skip section navigation (2)

pgsql: there's a paragraph in the ALTER TABLE reference page that reads:

From: momjian(at)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: there's a paragraph in the ALTER TABLE reference page that reads:
Date: 2005-12-08 21:35:36
Message-ID: 20051208213536.001449DCBF0@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
there's a paragraph in the ALTER TABLE reference page that reads:

DROP CONSTRAINT

    This form drops constraints on a table. Currently, constraints on tables
    are not required to have unique names, so there may be more than one
    constraint matching the specified name. All matching constraints will be
    dropped.

To my knowledge, it is no longer possible to create constraints with the
same name for the same relation. When you create a constraint and specify
the same name explictly, an error is raised. Implicit constraint creation
won't choose an existing name either and up to now you could not rename a
constraint. Renaming works with the patch I sent in a few hours ago but this
patch as well won't allow constraints with identical names on the same
relation.

The attached patch thus removes the note in the docs.

Joachim Wieland

Modified Files:
--------------
    pgsql/doc/src/sgml/ref:
        alter_table.sgml (r1.81 -> r1.82)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/ref/alter_table.sgml.diff?r1=1.81&r2=1.82)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2005-12-08 21:35:42
Subject: pgsql: there's a paragraph in the ALTER TABLE reference page that reads:
Previous:From: Bruce MomjianDate: 2005-12-08 21:33:59
Subject: pgsql: > 1) I'm proposing a patch to do the DROP FUNCTION argument tab

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group