From: Andres Freund Date: Wed, 6 Mar 2019 19:55:28 +0000 (-0800) Subject: Fix copy/out/readfuncs for accessMethod addition in 8586bf7ed8. X-Git-Tag: REL_12_BETA1~608 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1723423216749be9b28f8430c3b7180dec3fa70;p=postgresql Fix copy/out/readfuncs for accessMethod addition in 8586bf7ed8. 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. --- diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 72f21810fa..a0c1389488 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -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); diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 65302fe65b..d9a5e8cb6a 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -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); } diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c index 5aa42242a9..0a34fd9684 100644 --- a/src/backend/nodes/readfuncs.c +++ b/src/backend/nodes/readfuncs.c @@ -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); diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index f596ea5351..523958733d 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 201903061 +#define CATALOG_VERSION_NO 201903062 #endif