From: Bruce Momjian Date: Fri, 12 Aug 2022 14:59:00 +0000 (-0400) Subject: doc: clarify CREATE TABLE AS ... IF NOT EXISTS X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=7d66ccee99d57055a2ef42aa14b60ff6bdae5f1c;p=users%2Frhaas%2Fpostgres.git 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 --- diff --git a/doc/src/sgml/ref/create_table_as.sgml b/doc/src/sgml/ref/create_table_as.sgml index 07558ab56c..8429333e3a 100644 --- a/doc/src/sgml/ref/create_table_as.sgml +++ b/doc/src/sgml/ref/create_table_as.sgml @@ -100,9 +100,8 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXI IF NOT EXISTS - Do not throw an error if a relation with the same name already exists. - A notice is issued in this case. Refer to - 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.