From 6c8e20ad1b72527a8fe6d3005826e3b6fddafe26 Mon Sep 17 00:00:00 2001
From: Bruce Momjian
Date: Thu, 8 Dec 2005 21:35:41 +0000
Subject: 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
---
doc/src/sgml/ref/alter_table.sgml | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml
index a588f847cef..f73e5640b31 100644
--- a/doc/src/sgml/ref/alter_table.sgml
+++ b/doc/src/sgml/ref/alter_table.sgml
@@ -1,5 +1,5 @@
@@ -183,10 +183,7 @@ where action is one of:
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.
+ This form drops the specified constraint on a table.
--
cgit v1.2.3