pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix support for CREATE TABLE IF NOT EXISTS AS EXECUTE
Date: Fri, 15 Feb 2019 08:14:24 +0000
Message-ID: <E1guYdc-0000T0-LG@gemulon.postgresql.org> (raw)

Fix support for CREATE TABLE IF NOT EXISTS AS EXECUTE

The grammar IF NOT EXISTS for CTAS is supported since 9.5 and documented
as such, however the case of using EXECUTE as query has never been
covered as EXECUTE CTAS statements and normal CTAS statements are parsed
separately.

Author: Andreas Karlsson
Discussion: https://postgr.es/m/2ddcc188-e37c-a0be-32bf-a56b07c3559e@proxel.se
Backpatch-through: 9.5

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3a2923a9bfd8e769d5bafeef4284fbf1ba953cbf

Modified Files
--------------
src/backend/parser/gram.y                  | 18 ++++++++++++++++++
src/test/regress/expected/create_table.out | 14 ++++++++++++++
src/test/regress/sql/create_table.sql      |  8 ++++++++
3 files changed, 40 insertions(+)



view thread (5+ messages)  latest in thread

Message-ID: <E1guYdc-0000T0-LG@gemulon.postgresql.org>
Permalink:  ../E1guYdc-0000T0-LG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1guYdc-0000T0-LG@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Fix support for CREATE TABLE IF NOT EXISTS AS EXECUTE
  In-Reply-To: <E1guYdc-0000T0-LG@gemulon.postgresql.org>
  References: <E1guYdc-0000T0-LG@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox