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.
4158cc3 Do not write out WCOs in Query
src/backend/nodes/copyfuncs.c | 2 +-
src/backend/nodes/equalfuncs.c | 2 +-
src/backend/nodes/outfuncs.c | 1 -
src/backend/nodes/readfuncs.c | 1 -
src/include/catalog/catversion.h | 2 +-
src/include/nodes/parsenodes.h | 6 ++++--
6 files changed, 7 insertions(+), 7 deletions(-)
Upstream: git.postgresql.org