]> granicus.if.org Git - postgresql/commit
Fix _SPI_execute_plan() for CREATE TABLE IF NOT EXISTS foo AS ...
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Apr 2016 00:07:17 +0000 (20:07 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Apr 2016 00:07:17 +0000 (20:07 -0400)
commit079013f0b7e35f2fb14cdbe2667a1d9aac4f770e
tree9e550027535441b6cb657d1c84d277b07b58f083
parent8207c6baf8b42085bef442178ce8721ea726d9c7
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
src/backend/executor/spi.c