pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS ..
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS ..
@ 2016-04-12 00:07  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-04-12 00:07 UTC (permalink / raw)
  To: pgsql-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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS ..
@ 2016-04-12 00:07  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-04-12 00:07 UTC (permalink / raw)
  To: pgsql-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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/39c283e498de1bb7c3d5beadfffcf3273ae8cc27

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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-04-12 00:07 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-12 00:07 pgsql: Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS .. Tom Lane <tgl@sss.pgh.pa.us>
2016-04-12 00:07 pgsql: Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS .. Tom Lane <tgl@sss.pgh.pa.us>

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