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

Commit a4d75c86bf 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
This commit is contained in:
Tomas Vondra 2021-06-06 20:52:58 +02:00
parent a2dee328bb
commit d57ecebd12
4 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);
}

View File

@ -53,6 +53,6 @@
*/
/* yyyymmddN */
#define CATALOG_VERSION_NO 202106061
#define CATALOG_VERSION_NO 202106062
#endif