From 19bc06f6c8a21475f3ca01e9f7988ac0083caa21 Mon Sep 17 00:00:00 2001 From: "David G. Johnston" Date: Fri, 3 Apr 2026 10:06:07 -0700 Subject: [PATCH v1 2/2] pgsql: doc: Make constraint type labels not match syntax verbiage In CREATE TABLE, unique, primary key, and foreign key indexes all have table and column variants. In the description the label used to identify the variant matched the label used in the syntax. Since the label appears in a syntax blub this could lead to confusion as reported. To fix, add the word 'variant' to the six labels. --- doc/src/sgml/ref/create_table.sgml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 4c3808cdb45..83efc1f2b6c 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1009,9 +1009,9 @@ WITH ( MODULUS numeric_literal, REM - UNIQUE [ NULLS [ NOT ] DISTINCT ] (column constraint) + UNIQUE [ NULLS [ NOT ] DISTINCT ] (column constraint variant) UNIQUE [ NULLS [ NOT ] DISTINCT ] ( column_name [, ... ] [, column_name WITHOUT OVERLAPS ] ) - INCLUDE ( column_name [, ...]) (table constraint) + INCLUDE ( column_name [, ...]) (table constraint variant) @@ -1087,9 +1087,9 @@ WITH ( MODULUS numeric_literal, REM - PRIMARY KEY (column constraint) + PRIMARY KEY (column constraint variant) PRIMARY KEY ( column_name [, ... ] [, column_name WITHOUT OVERLAPS ] ) - INCLUDE ( column_name [, ...]) (table constraint) + INCLUDE ( column_name [, ...]) (table constraint variant) The PRIMARY KEY constraint specifies that a column or @@ -1203,14 +1203,14 @@ WITH ( MODULUS numeric_literal, REM - REFERENCES reftable [ ( refcolumn ) ] [ MATCH matchtype ] [ ON DELETE referential_action ] [ ON UPDATE referential_action ] (column constraint) + REFERENCES reftable [ ( refcolumn ) ] [ MATCH matchtype ] [ ON DELETE referential_action ] [ ON UPDATE referential_action ] (column constraint variant) FOREIGN KEY ( column_name [, ... ] [, PERIOD column_name ] ) REFERENCES reftable [ ( refcolumn [, ... ] [, PERIOD refcolumn ] ) ] [ MATCH matchtype ] [ ON DELETE referential_action ] [ ON UPDATE referential_action ] - (table constraint) + (table constraint variant) -- 2.43.0