8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2596d70 commit 4158cc3Copy full SHA for 4158cc3
src/backend/nodes/copyfuncs.c
@@ -2725,7 +2725,6 @@ _copyQuery(const Query *from)
2725
COPY_NODE_FIELD(rtable);
2726
COPY_NODE_FIELD(jointree);
2727
COPY_NODE_FIELD(targetList);
2728
- COPY_NODE_FIELD(withCheckOptions);
2729
COPY_NODE_FIELD(onConflict);
2730
COPY_NODE_FIELD(returningList);
2731
COPY_NODE_FIELD(groupClause);
@@ -2739,6 +2738,7 @@ _copyQuery(const Query *from)
2739
2738
COPY_NODE_FIELD(rowMarks);
2740
COPY_NODE_FIELD(setOperations);
2741
COPY_NODE_FIELD(constraintDeps);
+ COPY_NODE_FIELD(withCheckOptions);
2742
2743
return newnode;
2744
}
src/backend/nodes/equalfuncs.c
@@ -906,7 +906,6 @@ _equalQuery(const Query *a, const Query *b)
906
COMPARE_NODE_FIELD(rtable);
907
COMPARE_NODE_FIELD(jointree);
908
COMPARE_NODE_FIELD(targetList);
909
- COMPARE_NODE_FIELD(withCheckOptions);
910
COMPARE_NODE_FIELD(onConflict);
911
COMPARE_NODE_FIELD(returningList);
912
COMPARE_NODE_FIELD(groupClause);
@@ -920,6 +919,7 @@ _equalQuery(const Query *a, const Query *b)
920
919
COMPARE_NODE_FIELD(rowMarks);
921
COMPARE_NODE_FIELD(setOperations);
922
COMPARE_NODE_FIELD(constraintDeps);
+ COMPARE_NODE_FIELD(withCheckOptions);
923
924
return true;
925
src/backend/nodes/outfuncs.c
@@ -2397,7 +2397,6 @@ _outQuery(StringInfo str, const Query *node)
2397
WRITE_NODE_FIELD(rtable);
2398
WRITE_NODE_FIELD(jointree);
2399< 10BC0 /code>
2399
WRITE_NODE_FIELD(targetList);
2400
- WRITE_NODE_FIELD(withCheckOptions);
2401
WRITE_NODE_FIELD(onConflict);
2402
WRITE_NODE_FIELD(returningList);
2403
WRITE_NODE_FIELD(groupClause);
src/backend/nodes/readfuncs.c
@@ -244,7 +244,6 @@ _readQuery(void)
244
READ_NODE_FIELD(rtable);
245
READ_NODE_FIELD(jointree);
246
READ_NODE_FIELD(targetList);
247
- READ_NODE_FIELD(withCheckOptions);
248
READ_NODE_FIELD(onConflict);
249
READ_NODE_FIELD(returningList);
250
READ_NODE_FIELD(groupClause);
src/include/catalog/catversion.h
@@ -53,6 +53,6 @@
53
*/
54
55
/* yyyymmddN */
56
-#define CATALOG_VERSION_NO 201510042
+#define CATALOG_VERSION_NO 201510052
57
58
#endif
src/include/nodes/parsenodes.h
@@ -130,8 +130,6 @@ typedef struct Query
130
131
List *targetList; /* target list (of TargetEntry) */
132
133
- List *withCheckOptions; /* a list of WithCheckOption's */
134
-
135
OnConflictExpr *onConflict; /* ON CONFLICT DO [NOTHING | UPDATE] */
136
137
List *returningList; /* return-values list (of TargetEntry) */
@@ -158,6 +156,10 @@ typedef struct Query
158
156
159
157
List *constraintDeps; /* a list of pg_constraint OIDs that the query
160
* depends on to be semantically valid */
+
+ List *withCheckOptions; /* a list of WithCheckOption's, which are
161
+ * only added during rewrite and therefore
162
+ * are not written out as part of Query. */
163
} Query;
164
165