Commit a2dee328 authored by Noah Misch's avatar Noah Misch

Standardize nodes/*funcs.c cosmetics for ForeignScan.resultRelation.

catversion bump due to readfuncs.c field order change.
parent 5c25fd65
...@@ -775,6 +775,7 @@ _copyForeignScan(const ForeignScan *from) ...@@ -775,6 +775,7 @@ _copyForeignScan(const ForeignScan *from)
* copy remainder of node * copy remainder of node
*/ */
COPY_SCALAR_FIELD(operation); COPY_SCALAR_FIELD(operation);
COPY_SCALAR_FIELD(resultRelation);
COPY_SCALAR_FIELD(fs_server); COPY_SCALAR_FIELD(fs_server);
COPY_NODE_FIELD(fdw_exprs); COPY_NODE_FIELD(fdw_exprs);
COPY_NODE_FIELD(fdw_private); COPY_NODE_FIELD(fdw_private);
...@@ -782,7 +783,6 @@ _copyForeignScan(const ForeignScan *from) ...@@ -782,7 +783,6 @@ _copyForeignScan(const ForeignScan *from)
COPY_NODE_FIELD(fdw_recheck_quals); COPY_NODE_FIELD(fdw_recheck_quals);
COPY_BITMAPSET_FIELD(fs_relids); COPY_BITMAPSET_FIELD(fs_relids);
COPY_SCALAR_FIELD(fsSystemCol); COPY_SCALAR_FIELD(fsSystemCol);
COPY_SCALAR_FIELD(resultRelation);
return newnode; return newnode;
} }
......
...@@ -701,6 +701,7 @@ _outForeignScan(StringInfo str, const ForeignScan *node) ...@@ -701,6 +701,7 @@ _outForeignScan(StringInfo str, const ForeignScan *node)
_outScanInfo(str, (const Scan *) node); _outScanInfo(str, (const Scan *) node);
WRITE_ENUM_FIELD(operation, CmdType); WRITE_ENUM_FIELD(operation, CmdType);
WRITE_UINT_FIELD(resultRelation);
WRITE_OID_FIELD(fs_server); WRITE_OID_FIELD(fs_server);
WRITE_NODE_FIELD(fdw_exprs); WRITE_NODE_FIELD(fdw_exprs);
WRITE_NODE_FIELD(fdw_private); WRITE_NODE_FIELD(fdw_private);
...@@ -708,7 +709,6 @@ _outForeignScan(StringInfo str, const ForeignScan *node) ...@@ -708,7 +709,6 @@ _outForeignScan(StringInfo str, const ForeignScan *node)
WRITE_NODE_FIELD(fdw_recheck_quals); WRITE_NODE_FIELD(fdw_recheck_quals);
WRITE_BITMAPSET_FIELD(fs_relids); WRITE_BITMAPSET_FIELD(fs_relids);
WRITE_BOOL_FIELD(fsSystemCol); WRITE_BOOL_FIELD(fsSystemCol);
WRITE_INT_FIELD(resultRelation);
} }
static void static void
......
...@@ -2073,6 +2073,7 @@ _readForeignScan(void) ...@@ -2073,6 +2073,7 @@ _readForeignScan(void)
ReadCommonScan(&local_node->scan); ReadCommonScan(&local_node->scan);
READ_ENUM_FIELD(operation, CmdType); READ_ENUM_FIELD(operation, CmdType);
READ_UINT_FIELD(resultRelation);
READ_OID_FIELD(fs_server); READ_OID_FIELD(fs_server);
READ_NODE_FIELD(fdw_exprs); READ_NODE_FIELD(fdw_exprs);
READ_NODE_FIELD(fdw_private); READ_NODE_FIELD(fdw_private);
...@@ -2080,7 +2081,6 @@ _readForeignScan(void) ...@@ -2080,7 +2081,6 @@ _readForeignScan(void)
READ_NODE_FIELD(fdw_recheck_quals); READ_NODE_FIELD(fdw_recheck_quals);
READ_BITMAPSET_FIELD(fs_relids); READ_BITMAPSET_FIELD(fs_relids);
READ_BOOL_FIELD(fsSystemCol); READ_BOOL_FIELD(fsSystemCol);
READ_INT_FIELD(resultRelation);
READ_DONE(); READ_DONE();
} }
......
...@@ -53,6 +53,6 @@ ...@@ -53,6 +53,6 @@
*/ */
/* yyyymmddN */ /* yyyymmddN */
#define CATALOG_VERSION_NO 202106031 #define CATALOG_VERSION_NO 202106061
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment