From 6e9c974e437b2e455a6362cfbfef3fc48e66280c Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Wed, 28 Jun 2006 22:01:52 +0000 Subject: [PATCH] Editorialization for the additions to the CREATE TABLE reference page made as part of the recent INCLUDING CONSTRAINTS patch. The text could stand further improvement, but this is at least a step in the right direction. --- doc/src/sgml/ref/create_table.sgml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 916f0c8b56..0276dc7ad2 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1,5 +1,5 @@ @@ -249,19 +249,19 @@ and table_constraint is: Default expressions for the copied column definitions will only be copied if INCLUDING DEFAULTS is specified. The - default behavior is to exclude default expressions, resulting in - all columns of the new table having null defaults. + default behavior is to exclude default expressions, resulting in the + copied columns in the new table having null defaults. - Likewise constraints for the copied column definitions will only be - copied if INCLUDING CONSTRAINTS is specified. Note - that currently even when INCLUDING CONSTRAINTS is specified - only CHECK constraints are copied. Also, no distinction is made between - column constraints and table constraints -- when constraints are - requested all check constraints are copied. + Not-null constraints are always copied to the new table. + CHECK constraints will only be copied if + INCLUDING CONSTRAINTS is specified; other types of + constraints will never be copied. Also, no distinction is made between + column constraints and table constraints — when constraints are + requested, all check constraints are copied. - Note also that unlike INHERITS copied columns and + Note also that unlike INHERITS, copied columns and constraints are not merged with similarly named columns and constraints. If the same name is specified explicitly or in another LIKE clause an error is signalled.