mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
Clarify documentation that primary key and unique constraints are copied
for CREATE TABLE LIKE ... INCLUDING INDEXES. Per report from david.sahagian@emc.com
This commit is contained in:
@ -336,16 +336,13 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
|
|||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Not-null constraints are always copied to the new table.
|
Not-null constraints are always copied to the new table.
|
||||||
<literal>CHECK</literal> constraints will only be copied if
|
<literal>CHECK</literal> constraints will be copied only if
|
||||||
<literal>INCLUDING CONSTRAINTS</literal> is specified; other types of
|
<literal>INCLUDING CONSTRAINTS</literal> is specified.
|
||||||
constraints will never be copied. Also, no distinction is made between
|
Indexes, <literal>PRIMARY KEY</>, and <literal>UNIQUE</> constraints
|
||||||
column constraints and table constraints — when constraints are
|
on the original table will be created on the new table only if the
|
||||||
requested, all check constraints are copied.
|
<literal>INCLUDING INDEXES</literal> clause is specified.
|
||||||
</para>
|
No distinction is made between column constraints and table
|
||||||
<para>
|
constraints.
|
||||||
Any indexes on the original table will not be created on the new
|
|
||||||
table, unless the <literal>INCLUDING INDEXES</literal> clause is
|
|
||||||
specified.
|
|
||||||
</para>
|
</para>
|
||||||
<para><literal>STORAGE</> settings for the copied column definitions will only
|
<para><literal>STORAGE</> settings for the copied column definitions will only
|
||||||
be copied if <literal>INCLUDING STORAGE</literal> is specified. The
|
be copied if <literal>INCLUDING STORAGE</literal> is specified. The
|
||||||
|
Reference in New Issue
Block a user