Skip to content

Commit a2dee32

Browse files
committed
Standardize nodes/*funcs.c cosmetics for ForeignScan.resultRelation.
catversion bump due to readfuncs.c field order change.
1 parent 5c25fd6 commit a2dee32

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/backend/nodes/copyfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,14 +775,14 @@ _copyForeignScan(const ForeignScan *from)
775775
* copy remainder of node
776776
*/
777777
COPY_SCALAR_FIELD(operation);
778+
COPY_SCALAR_FIELD(resultRelation);
778779
COPY_SCALAR_FIELD(fs_server);
779780
COPY_NODE_FIELD(fdw_exprs);
780781
COPY_NODE_FIELD(fdw_private);
781782
COPY_NODE_FIELD(fdw_scan_tlist);
782783
COPY_NODE_FIELD(fdw_recheck_quals);
783784
COPY_BITMAPSET_FIELD(fs_relids);
784785
COPY_SCALAR_FIELD(fsSystemCol);
785-
COPY_SCALAR_FIELD(resultRelation);
786786

787787
return newnode;
788788
}

src/backend/nodes/outfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,14 +701,14 @@ _outForeignScan(StringInfo str, const ForeignScan *node)
701701
_outScanInfo(str, (const Scan *) node);
702702

703703
WRITE_ENUM_FIELD(operation, CmdType);
704+
WRITE_UINT_FIELD(resultRelation);
704705
WRITE_OID_FIELD(fs_server);
705706
WRITE_NODE_FIELD(fdw_exprs);
706707
WRITE_NODE_FIELD(fdw_private);
707708
WRITE_NODE_FIELD(fdw_scan_tlist);
708709
WRITE_NODE_FIELD(fdw_recheck_quals);
709710
WRITE_BITMAPSET_FIELD(fs_relids);
710711
WRITE_BOOL_FIELD(fsSystemCol);
711-
WRITE_INT_FIELD(resultRelation);
712712
}
713713

714714
static void

src/backend/nodes/readfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2073,14 +2073,14 @@ _readForeignScan(void)
20732073
ReadCommonScan(&local_node->scan);
20742074

20752075
READ_ENUM_FIELD(operation, CmdType);
2076+
READ_UINT_FIELD(resultRelation);
20762077
READ_OID_FIELD(fs_server);
20772078
READ_NODE_FIELD(fdw_exprs);
20782079
READ_NODE_FIELD(fdw_private);
20792080
READ_NODE_FIELD(fdw_scan_tlist);
20802081
READ_NODE_FIELD(fdw_recheck_quals);
20812082
READ_BITMAPSET_FIELD(fs_relids);
20822083
READ_BOOL_FIELD(fsSystemCol);
2083-
READ_INT_FIELD(resultRelation);
20842084

20852085
READ_DONE();
20862086
}

src/include/catalog/catversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/* yyyymmddN */
56-
#define CATALOG_VERSION_NO 202106031
56+
#define CATALOG_VERSION_NO 202106061
5757

5858
#endif

0 commit comments

Comments
 (0)