doc: Add WITHOUT OVERLAPS to ALTER TABLE reference docs
authorPeter Eisentraut
Wed, 13 Nov 2024 07:42:34 +0000 (08:42 +0100)
committerPeter Eisentraut
Wed, 13 Nov 2024 07:42:34 +0000 (08:42 +0100)
Commit fc0438b4e80 documented WITHOUT OVERLAPS in the CREATE TABLE
docs, but not in ALTER TABLE.  This commit adds the new syntax to the
ALTER TABLE docs.

Author: Paul A. Jungwirth 
Discussion: https://www.postgresql.org/message-id/57ea0668-5205-426e-b934-efc89f2186c2@illuminatedcomputing.com

doc/src/sgml/ref/alter_table.sgml

index 6098ebed4334bb3afde17771468d6a4cbe983181..ff7f4e43f0b2c7ffde694c4ae11075726bcb429b 100644 (file)
@@ -115,8 +115,8 @@ WITH ( MODULUS numeric_literal, REM
 [ CONSTRAINT constraint_name ]
 { CHECK ( expression ) [ NO INHERIT ] |
   NOT NULL column_name [ NO INHERIT ] |
-  UNIQUE [ NULLS [ NOT ] DISTINCT ] ( column_name [, ... ] ) index_parameters |
-  PRIMARY KEY ( column_name [, ... ] ) index_parameters |
+  UNIQUE [ NULLS [ NOT ] DISTINCT ] ( column_name [, ... ] [, column_name WITHOUT OVERLAPS ] index_parameters |
+  PRIMARY KEY ( column_name [, ... ] [, column_name WITHOUT OVERLAPS ] index_parameters |
   EXCLUDE [ USING index_method ] ( exclude_element WITH operator [, ... ] ) index_parameters [ WHERE ( predicate ) ] |
   FOREIGN KEY ( column_name [, ... ] ) REFERENCES reftable [ ( refcolumn [, ... ] ) ]
     [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE referential_action ] [ ON UPDATE referential_action ] }