projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a966ac1
)
I think it's important that it's actually documented that they can add
author
Bruce Momjian
Sun, 17 Feb 2002 11:50:09 +0000
(11:50 +0000)
committer
Bruce Momjian
Sun, 17 Feb 2002 11:50:09 +0000
(11:50 +0000)
primary keys after the fact!
Also, we need to add regression tests for alter table / add primary key
and alter table / drop constraint. These shouldn't be added until 7.3
tho
methinks...
Chris
doc/src/sgml/ref/alter_table.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/ref/alter_table.sgml
b/doc/src/sgml/ref/alter_table.sgml
index 29213b96a519ef7f504f1dab43a9ac1fa412dcc7..ef58e94a44230eed792dbca770beda3ead8d5966 100644
(file)
--- a/
doc/src/sgml/ref/alter_table.sgml
+++ b/
doc/src/sgml/ref/alter_table.sgml
@@
-1,5
+1,5
@@
@@
-295,6
+295,15
@@
ALTER TABLE distributors ADD CONSTRAINT dist_id_zipcode_key UNIQUE (dist_id, zip
+
+ To add an automatically named primary key constraint to a table, noting
+ that a table can only ever have one primary key:
+
+ALTER TABLE distributors ADD PRIMARY KEY (dist_id);
+
+
+
+
Compatibility