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
pull/64/merge
Tomas Vondra 5 years ago
parent a2dee328bb
commit d57ecebd12
  1. 1
      src/backend/nodes/copyfuncs.c
  2. 1
      src/backend/nodes/equalfuncs.c
  3. 1
      src/backend/nodes/outfuncs.c
  4. 2
      src/include/catalog/catversion.h

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

Loading…
Cancel
Save