pgsql: Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS .. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS ..
Date
Msg-id E1aplra-0002l1-UA@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix two places that thought Windows64 is indicated by WIN64 macr
Next
From: Tom Lane
Date:
Subject: pgsql: Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS ..