Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39efe0b

Browse files
committed
doc: clarify CREATE TABLE AS ... IF NOT EXISTS
Mention that the table is not modified if it already exists. Reported-by: [email protected] Discussion: https://postgr.es/m/[email protected] Backpatch-through: 10
1 parent 6bd18f1 commit 39efe0b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/src/sgml/ref/create_table_as.sgml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
9494
<term><literal>IF NOT EXISTS</></term>
9595
<listitem>
9696
<para>
97-
Do not throw an error if a relation with the same name already exists.
98-
A notice is issued in this case. Refer to <xref linkend="sql-createtable">
99-
for details.
97+
Do not throw an error if a relation with the same name already
98+
exists; simply issue a notice and leave the table unmodified.
10099
</para>
101100
</listitem>
102101
</varlistentry>

0 commit comments

Comments
 (0)