aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2022-08-12 10:59:00 -0400
committerBruce Momjian <bruce@momjian.us>2022-08-12 10:59:00 -0400
commite1785d8d9f171d988ff30bace10ef563b532bb4f (patch)
tree2d62b3d08197fd20fd076726d1ac725db1325edc
parent483c426abd61a997af1b8865e65532c4a9e27bbe (diff)
downloadpostgresql-e1785d8d9f171d988ff30bace10ef563b532bb4f.tar.gz
postgresql-e1785d8d9f171d988ff30bace10ef563b532bb4f.zip
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
-rw-r--r--doc/src/sgml/ref/create_table_as.sgml5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/create_table_as.sgml b/doc/src/sgml/ref/create_table_as.sgml
index a4640929cfb..5e7dc3a6124 100644
--- a/doc/src/sgml/ref/create_table_as.sgml
+++ b/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>
<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>