Skip to content

Commit 7d66cce

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 4d807bb commit 7d66cce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/src/sgml/ref/create_table_as.sgml

+2-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
100100
<term><literal>IF NOT EXISTS</literal></term>
101101
<listitem>
102102
<para>
103-
Do not throw an error if a relation with the same name already exists.
104-
A notice is issued in this case. Refer to <xref linkend="sql-createtable"/>
105-
for details.
103+
Do not throw an error if a relation with the same name already
104+
exists; simply issue a notice and leave the table unmodified.
106105
</para>
107106
</listitem>
108107
</varlistentry>

0 commit comments

Comments
 (0)