CREATE TABLE AS, section IF NOT EXISTS should clarify what happens to the data

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: frank_limpert(at)yahoo(dot)com
Subject: CREATE TABLE AS, section IF NOT EXISTS should clarify what happens to the data
Date: 2022-02-09 13:02:51
Message-ID: 164441177106.9677.5991676148704507229@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/sql-createtableas.html
Description:

If I create a table with CREATE TABLE IF NOT EXISTS table_name AS, and the
table exists already, I get a NOTICE instead of an ERROR.

I wanted to have it clarified explicitly that the data from the SELECT
statement is ignored in this case.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Erwin Brandstetter 2022-02-10 17:08:51 Re: PL/pgSQL PERFORM WITH query
Previous Message David G. Johnston 2022-02-08 22:53:59 Re: PL/pgSQL PERFORM WITH query