Fix support for CREATE TABLE IF NOT EXISTS AS EXECUTE

Michael Paquier <michael@paquier.xyz>

Commit: d08fae3773ea3b9930d3efc0429a38614c2dd706
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-02-15T08:12:46Z
Releases: 9.6.13
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

Files

Discussion