Reconcile nodes/*funcs.c.
authorNoah Misch <noah@leadboat.com>
Mon, 25 May 2020 23:23:48 +0000 (16:23 -0700)
committerNoah Misch <noah@leadboat.com>
Mon, 25 May 2020 23:23:48 +0000 (16:23 -0700)
The stmt_len changes do not affect behavior.  LimitPath has no other
support functions, so that part changes only debugging output.

src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/nodes/outfuncs.c
src/backend/nodes/readfuncs.c

index 491452ae2d41053978e77cc92c2c65d8a885f14e..d8cf87e6d0886eaf177b0d7cbca0988c0889752e 100644 (file)
@@ -101,7 +101,7 @@ _copyPlannedStmt(const PlannedStmt *from)
        COPY_NODE_FIELD(paramExecTypes);
        COPY_NODE_FIELD(utilityStmt);
        COPY_LOCATION_FIELD(stmt_location);
-       COPY_LOCATION_FIELD(stmt_len);
+       COPY_SCALAR_FIELD(stmt_len);
 
        return newnode;
 }
@@ -3090,7 +3090,7 @@ _copyQuery(const Query *from)
        COPY_NODE_FIELD(constraintDeps);
        COPY_NODE_FIELD(withCheckOptions);
        COPY_LOCATION_FIELD(stmt_location);
-       COPY_LOCATION_FIELD(stmt_len);
+       COPY_SCALAR_FIELD(stmt_len);
 
        return newnode;
 }
@@ -3102,7 +3102,7 @@ _copyRawStmt(const RawStmt *from)
 
        COPY_NODE_FIELD(stmt);
        COPY_LOCATION_FIELD(stmt_location);
-       COPY_LOCATION_FIELD(stmt_len);
+       COPY_SCALAR_FIELD(stmt_len);
 
        return newnode;
 }
index 8408c28ec6990fdaaf716b2fb10d8191b014b713..627b026b195e570d964be44b45bb15614f342b53 100644 (file)
@@ -987,7 +987,7 @@ _equalQuery(const Query *a, const Query *b)
        COMPARE_NODE_FIELD(constraintDeps);
        COMPARE_NODE_FIELD(withCheckOptions);
        COMPARE_LOCATION_FIELD(stmt_location);
-       COMPARE_LOCATION_FIELD(stmt_len);
+       COMPARE_SCALAR_FIELD(stmt_len);
 
        return true;
 }
@@ -997,7 +997,7 @@ _equalRawStmt(const RawStmt *a, const RawStmt *b)
 {
        COMPARE_NODE_FIELD(stmt);
        COMPARE_LOCATION_FIELD(stmt_location);
-       COMPARE_LOCATION_FIELD(stmt_len);
+       COMPARE_SCALAR_FIELD(stmt_len);
 
        return true;
 }
index ebf3ce37aaa8df9084b858219395d2458858d51b..e2f177515dac3ea6220c8a18e1f7089ca6705d38 100644 (file)
@@ -319,7 +319,7 @@ _outPlannedStmt(StringInfo str, const PlannedStmt *node)
        WRITE_NODE_FIELD(paramExecTypes);
        WRITE_NODE_FIELD(utilityStmt);
        WRITE_LOCATION_FIELD(stmt_location);
-       WRITE_LOCATION_FIELD(stmt_len);
+       WRITE_INT_FIELD(stmt_len);
 }
 
 /*
@@ -2135,6 +2135,7 @@ _outLimitPath(StringInfo str, const LimitPath *node)
        WRITE_NODE_FIELD(subpath);
        WRITE_NODE_FIELD(limitOffset);
        WRITE_NODE_FIELD(limitCount);
+       WRITE_ENUM_FIELD(limitOption, LimitOption);
 }
 
 static void
@@ -2966,7 +2967,7 @@ _outQuery(StringInfo str, const Query *node)
        WRITE_NODE_FIELD(constraintDeps);
        WRITE_NODE_FIELD(withCheckOptions);
        WRITE_LOCATION_FIELD(stmt_location);
-       WRITE_LOCATION_FIELD(stmt_len);
+       WRITE_INT_FIELD(stmt_len);
 }
 
 static void
index eb01584a5f667275413446ee62840dacf8ec2a8b..42050ab71955a134aa3d99b287fcdcd3b5cf78d2 100644 (file)
@@ -284,7 +284,7 @@ _readQuery(void)
        READ_NODE_FIELD(constraintDeps);
        READ_NODE_FIELD(withCheckOptions);
        READ_LOCATION_FIELD(stmt_location);
-       READ_LOCATION_FIELD(stmt_len);
+       READ_INT_FIELD(stmt_len);
 
        READ_DONE();
 }
@@ -1552,7 +1552,7 @@ _readPlannedStmt(void)
        READ_NODE_FIELD(paramExecTypes);
        READ_NODE_FIELD(utilityStmt);
        READ_LOCATION_FIELD(stmt_location);
-       READ_LOCATION_FIELD(stmt_len);
+       READ_INT_FIELD(stmt_len);
 
        READ_DONE();
 }