From de87d4704432e98a327dbf42dbc4711fa2628a9c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 26 Aug 2012 16:33:11 -0400 Subject: Clarify documentation that primary key and unique constraints are copied for CREATE TABLE LIKE ... INCLUDING INDEXES. Per report from david.sahagian@emc.com --- doc/src/sgml/ref/create_table.sgml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 19e6f8ed610..445ca406950 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -336,16 +336,13 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI 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. - - - Any indexes on the original table will not be created on the new - table, unless the INCLUDING INDEXES clause is - specified. + CHECK constraints will be copied only if + INCLUDING CONSTRAINTS is specified. + Indexes, PRIMARY KEY, and UNIQUE constraints + on the original table will be created on the new table only if the + INCLUDING INDEXES clause is specified. + No distinction is made between column constraints and table + constraints. STORAGE settings for the copied column definitions will only be copied if INCLUDING STORAGE is specified. The -- cgit v1.2.3