Skip to content

Commit e2989fc

Browse files
committed
docs: mention CREATE TABLE LIKE linkage using INCLUDING DEFAULTS
Mention that CREATE TABLE LIKE INCLUDING DEFAULTS creates a link between the original and new tables if a default function modifies the database, like nextval().
1 parent 71c6a8e commit e2989fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/src/sgml/ref/create_table.sgml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,10 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
329329
</para>
330330
<para>
331331
Default expressions for the copied column definitions will only be
332-
copied if <literal>INCLUDING DEFAULTS</literal> is specified. The
332+
copied if <literal>INCLUDING DEFAULTS</literal> is specified.
333+
Defaults that call database-modification functions, like
334+
<function>nextval</>, create a linkage between the original and
335+
new tables. The
333336
default behavior is to exclude default expressions, resulting in the
334337
copied columns in the new table having null defaults.
335338
</para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy