pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS ..
Date: Tue, 12 Apr 2016 00:07:26 +0000
Message-ID: <E1aplra-0002l2-UD@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS ...

When IF NOT EXISTS was added to CREATE TABLE AS, this logic didn't get
the memo, possibly resulting in an Assert failure.  It looks like there
would have been no ill effects in a non-Assert build, though.  Back-patch
to 9.5 where the IF NOT EXISTS option was added.

Stas Kelvich

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/079013f0b7e35f2fb14cdbe2667a1d9aac4f770e

Modified Files
--------------
src/backend/executor/spi.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (2+ messages)  latest in thread

Message-ID: <E1aplra-0002l2-UD@gemulon.postgresql.org>
Permalink:  ../E1aplra-0002l2-UD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1aplra-0002l2-UD@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS ..
  In-Reply-To: <E1aplra-0002l2-UD@gemulon.postgresql.org>
  References: <E1aplra-0002l2-UD@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