Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
doc: clarify CREATE TABLE AS ... IF NOT EXISTS
authorBruce Momjian <bruce@momjian.us>
Fri, 12 Aug 2022 14:59:00 +0000 (10:59 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 12 Aug 2022 14:59:00 +0000 (10:59 -0400)
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

doc/src/sgml/ref/create_table_as.sgml

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