]> granicus.if.org Git - postgresql/commitdiff
Fix copy/out/readfuncs for accessMethod addition in 8586bf7ed8.
authorAndres Freund <andres@anarazel.de>
Wed, 6 Mar 2019 19:55:28 +0000 (11:55 -0800)
committerAndres Freund <andres@anarazel.de>
Wed, 6 Mar 2019 19:55:28 +0000 (11:55 -0800)
This includes a catversion bump, as IntoClause is theoretically
speaking part of storable rules. In practice I don't think that can
happen, but there's no reason to be stingy here.

Per buildfarm member calliphoridae.

src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c
src/backend/nodes/readfuncs.c
src/include/catalog/catversion.h

index 72f21810fafc445b54c1e78ba96b77c33979e4f1..a0c13894883446c56dfa24a09fcbdf9c930d596e 100644 (file)
@@ -1324,6 +1324,7 @@ _copyIntoClause(const IntoClause *from)
 
        COPY_NODE_FIELD(rel);
        COPY_NODE_FIELD(colNames);
+       COPY_STRING_FIELD(accessMethod);
        COPY_NODE_FIELD(options);
        COPY_SCALAR_FIELD(onCommit);
        COPY_STRING_FIELD(tableSpaceName);
index 65302fe65b403f3ff41a2e6e89418f6254eb0911..d9a5e8cb6af70899dac1fcb3531af3159cd2ca7d 100644 (file)
@@ -1043,6 +1043,7 @@ _outIntoClause(StringInfo str, const IntoClause *node)
 
        WRITE_NODE_FIELD(rel);
        WRITE_NODE_FIELD(colNames);
+       WRITE_NODE_FIELD(accessMethod);
        WRITE_NODE_FIELD(options);
        WRITE_ENUM_FIELD(onCommit, OnCommitAction);
        WRITE_STRING_FIELD(tableSpaceName);
@@ -2578,6 +2579,7 @@ _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
        WRITE_NODE_FIELD(options);
        WRITE_ENUM_FIELD(oncommit, OnCommitAction);
        WRITE_STRING_FIELD(tablespacename);
+       WRITE_STRING_FIELD(accessMethod);
        WRITE_BOOL_FIELD(if_not_exists);
 }
 
index 5aa42242a9febb681e71c125036d85775afa63e3..0a34fd96841a8e974c01e64d85d0027bacfafc3c 100644 (file)
@@ -516,6 +516,7 @@ _readIntoClause(void)
 
        READ_NODE_FIELD(rel);
        READ_NODE_FIELD(colNames);
+       READ_STRING_FIELD(accessMethod);
        READ_NODE_FIELD(options);
        READ_ENUM_FIELD(onCommit, OnCommitAction);
        READ_STRING_FIELD(tableSpaceName);
index f596ea5351116305ab01f949299d5e635507fba8..523958733d58e974921acaf326683a21367aead8 100644 (file)
@@ -53,6 +53,6 @@
  */
 
 /*                                                     yyyymmddN */
-#define CATALOG_VERSION_NO     201903061
+#define CATALOG_VERSION_NO     201903062
 
 #endif