aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/parsenodes.h
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2015-10-05 07:38:56 -0400
committerStephen Frost <sfrost@snowman.net>2015-10-05 07:38:56 -0400
commit31fb4df69d1364c79cfab0a2bd4470d0c48e942e (patch)
treea1c51314b5fc15b0f5bc9785ddf438c25aa0d119 /src/include/nodes/parsenodes.h
parent0577821b57253d0ae43ffdddc8f94f07866830ae (diff)
downloadpostgresql-31fb4df69d1364c79cfab0a2bd4470d0c48e942e.tar.gz
postgresql-31fb4df69d1364c79cfab0a2bd4470d0c48e942e.zip
Do not write out WCOs in Query
The WithCheckOptions list in Query are only populated during rewrite and do not need to be written out or read in as part of a Query structure. Further, move WithCheckOptions to the bottom and add comments to clarify that it is only populated during rewrite. Back-patch to 9.5 with a catversion bump, as we are still in alpha.
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r--src/include/nodes/parsenodes.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 18bb075b3f3..4a198420abc 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -130,8 +130,6 @@ typedef struct Query
List *targetList; /* target list (of TargetEntry) */
- List *withCheckOptions; /* a list of WithCheckOption's */
-
OnConflictExpr *onConflict; /* ON CONFLICT DO [NOTHING | UPDATE] */
List *returningList; /* return-values list (of TargetEntry) */
@@ -158,6 +156,10 @@ typedef struct Query
List *constraintDeps; /* a list of pg_constraint OIDs that the query
* depends on to be semantically valid */
+
+ List *withCheckOptions; /* a list of WithCheckOption's, which are
+ * only added during rewrite and therefore
+ * are not written out as part of Query. */
} Query;