Commit d57ecebd authored by Tomas Vondra's avatar Tomas Vondra

Add transformed flag to nodes/*funcs.c for CREATE STATISTICS

Commit a4d75c86 added a new flag, tracking if the statement was
processed by transformStatsStmt(), but failed to add this flag to
nodes/*funcs.c.

Catversion bump, due to adding a flag to copy/equal/out functions.

Reported-by: Noah Misch
Discussion: https://postgr.es/m/ad7891d2-e90c-b446-9fe2-7419143847d7%40enterprisedb.com
parent a2dee328
......@@ -3678,6 +3678,7 @@ _copyCreateStatsStmt(const CreateStatsStmt *from)
COPY_NODE_FIELD(exprs);
COPY_NODE_FIELD(relations);
COPY_STRING_FIELD(stxcomment);
COPY_SCALAR_FIELD(transformed);
COPY_SCALAR_FIELD(if_not_exists);
return newnode;
......
......@@ -1405,6 +1405,7 @@ _equalCreateStatsStmt(const CreateStatsStmt *a, const CreateStatsStmt *b)
COMPARE_NODE_FIELD(exprs);
COMPARE_NODE_FIELD(relations);
COMPARE_STRING_FIELD(stxcomment);
COMPARE_SCALAR_FIELD(transformed);
COMPARE_SCALAR_FIELD(if_not_exists);
return true;
......
......@@ -2778,6 +2778,7 @@ _outCreateStatsStmt(StringInfo str, const CreateStatsStmt *node)
WRITE_NODE_FIELD(exprs);
WRITE_NODE_FIELD(relations);
WRITE_STRING_FIELD(stxcomment);
WRITE_BOOL_FIELD(transformed);
WRITE_BOOL_FIELD(if_not_exists);
}
......
......@@ -53,6 +53,6 @@
*/
/* yyyymmddN */
#define CATALOG_VERSION_NO 202106061
#define CATALOG_VERSION_NO 202106062
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment