doc: clarify CREATE TABLE AS ... IF NOT EXISTS

Mention that the table is not modified if it already exists.

Reported-by: frank_limpert@yahoo.com

Discussion: https://postgr.es/m/164441177106.9677.5991676148704507229@wrigleys.postgresql.org

Backpatch-through: 10
pull/158/head
Bruce Momjian 3 years ago
parent 483c426abd
commit e1785d8d9f
  1. 5
      doc/src/sgml/ref/create_table_as.sgml

@ -95,9 +95,8 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI
<term><literal>IF NOT EXISTS</literal></term> <term><literal>IF NOT EXISTS</literal></term>
<listitem> <listitem>
<para> <para>
Do not throw an error if a relation with the same name already exists. Do not throw an error if a relation with the same name already
A notice is issued in this case. Refer to <xref linkend="sql-createtable"/> exists; simply issue a notice and leave the table unmodified.
for details.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>

Loading…
Cancel
Save