Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b172342

Browse files
committed
Fix copy/out/readfuncs for accessMethod addition in 8586bf7.
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.
1 parent 863aa55 commit b172342

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/backend/nodes/copyfuncs.c

+1
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,7 @@ _copyIntoClause(const IntoClause *from)
13241324

13251325
COPY_NODE_FIELD(rel);
13261326
COPY_NODE_FIELD(colNames);
1327+
COPY_STRING_FIELD(accessMethod);
13271328
COPY_NODE_FIELD(options);
13281329
COPY_SCALAR_FIELD(onCommit);
13291330
COPY_STRING_FIELD(tableSpaceName);

src/backend/nodes/outfuncs.c

+2
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,7 @@ _outIntoClause(StringInfo str, const IntoClause *node)
10431043

10441044
WRITE_NODE_FIELD(rel);
10451045
WRITE_NODE_FIELD(colNames);
1046+
WRITE_NODE_FIELD(accessMethod);
10461047
WRITE_NODE_FIELD(options);
10471048
WRITE_ENUM_FIELD(onCommit, OnCommitAction);
10481049
WRITE_STRING_FIELD(tableSpaceName);
@@ -2578,6 +2579,7 @@ _outCreateStmtInfo(StringInfo str, const CreateStmt *node)
25782579
WRITE_NODE_FIELD(options);
25792580
WRITE_ENUM_FIELD(oncommit, OnCommitAction);
25802581
WRITE_STRING_FIELD(tablespacename);
2582+
WRITE_STRING_FIELD(accessMethod);
25812583
WRITE_BOOL_FIELD(if_not_exists);
25822584
}
25832585

src/backend/nodes/readfuncs.c

+1
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ _readIntoClause(void)
516516

517517
READ_NODE_FIELD(rel);
518518
READ_NODE_FIELD(colNames);
519+
READ_STRING_FIELD(accessMethod);
519520
READ_NODE_FIELD(options);
520521
READ_ENUM_FIELD(onCommit, OnCommitAction);
521522
READ_STRING_FIELD(tableSpaceName);

src/include/catalog/catversion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/* yyyymmddN */
56-
#define CATALOG_VERSION_NO 201903061
56+
#define CATALOG_VERSION_NO 201903062
5757

5858
#endif

0 commit comments

Comments
 (0)