From a67d66149cd5240ec850b8eb741df7a9ab2d58e0 Mon Sep 17 00:00:00 2001 From: syj <904673462@qq.com> Date: Fri, 15 Jan 2021 11:08:47 +0800 Subject: [PATCH] Add help information about REFERENCES of column_constraint. --- doc/src/sgml/ref/alter_table.sgmlin | 4 +++- doc/src/sgml/ref/create_table.sgmlin | 4 +++- doc/src/sgml/ref/create_table_partition.sgmlin | 4 +++- src/test/regress/expected/alter_table_000.out | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/ref/alter_table.sgmlin b/doc/src/sgml/ref/alter_table.sgmlin index 0c8a85dce..d2a8caa91 100755 --- a/doc/src/sgml/ref/alter_table.sgmlin +++ b/doc/src/sgml/ref/alter_table.sgmlin @@ -76,7 +76,9 @@ where column_constraint can be: CHECK ( expression ) | DEFAULT default_expr | UNIQUE index_parameters | - PRIMARY KEY index_parameters } + PRIMARY KEY index_parameters | + REFERENCES reftable [ ( refcolumn ) ] [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] + [ ON DELETE action ] [ ON UPDATE action ] } [ DEFERRABLE | NOT DEFERRABLE | INITIALLY DEFERRED | INITIALLY IMMEDIATE ] where compress_mode can be: { DELTA | PREFIX | DICTIONARY | NUMSTR | NOCOMPRESS } diff --git a/doc/src/sgml/ref/create_table.sgmlin b/doc/src/sgml/ref/create_table.sgmlin index 6de5c8a3e..59de07c7c 100644 --- a/doc/src/sgml/ref/create_table.sgmlin +++ b/doc/src/sgml/ref/create_table.sgmlin @@ -31,7 +31,9 @@ where column_constraint can be: CHECK ( expression ) | DEFAULT default_expr | UNIQUE index_parameters | - PRIMARY KEY index_parameters } + PRIMARY KEY index_parameters | + REFERENCES reftable [ ( refcolumn ) ] [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] + [ ON DELETE action ] [ ON UPDATE action ] } [ DEFERRABLE | NOT DEFERRABLE | INITIALLY DEFERRED | INITIALLY IMMEDIATE ] where table_constraint can be: [ CONSTRAINT constraint_name ] diff --git a/doc/src/sgml/ref/create_table_partition.sgmlin b/doc/src/sgml/ref/create_table_partition.sgmlin index 1a103ee3f..e129a8232 100644 --- a/doc/src/sgml/ref/create_table_partition.sgmlin +++ b/doc/src/sgml/ref/create_table_partition.sgmlin @@ -35,7 +35,9 @@ where column_constraint can be: CHECK ( expression ) | DEFAULT default_expr | UNIQUE index_parameters | - PRIMARY KEY index_parameters } + PRIMARY KEY index_parameters | + REFERENCES reftable [ ( refcolumn ) ] [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] + [ ON DELETE action ] [ ON UPDATE action ] } [ DEFERRABLE | NOT DEFERRABLE | INITIALLY DEFERRED | INITIALLY IMMEDIATE ] where table_constraint can be: [ CONSTRAINT constraint_name ] diff --git a/src/test/regress/expected/alter_table_000.out b/src/test/regress/expected/alter_table_000.out index 45a617a40..963f23a95 100644 --- a/src/test/regress/expected/alter_table_000.out +++ b/src/test/regress/expected/alter_table_000.out @@ -72,7 +72,9 @@ where column_constraint can be: CHECK ( expression ) | DEFAULT default_expr | UNIQUE index_parameters | - PRIMARY KEY index_parameters } + PRIMARY KEY index_parameters | + REFERENCES reftable [ ( refcolumn ) ] [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] + [ ON DELETE action ] [ ON UPDATE action ] } [ DEFERRABLE | NOT DEFERRABLE | INITIALLY DEFERRED | INITIALLY IMMEDIATE ] where compress_mode can be: { DELTA | PREFIX | DICTIONARY | NUMSTR | NOCOMPRESS }