diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index d5b67d48cfc..c9708e38f46 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -1980,8 +1980,8 @@ generateClonedExtStatsStmt(RangeVar *heapRel, Oid heapRelid, stats->exprs = def_names; stats->relations = list_make1(heapRel); stats->stxcomment = NULL; - stats->if_not_exists = false; stats->transformed = true; /* don't need transformStatsStmt again */ + stats->if_not_exists = false; /* Clean up */ ReleaseSysCache(ht_stats); diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 58328c43774..def9651b341 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -2912,8 +2912,8 @@ typedef struct CreateStatsStmt List *exprs; /* expressions to build statistics on */ List *relations; /* rels to build stats on (list of RangeVar) */ char *stxcomment; /* comment to apply to stats, or NULL */ - bool if_not_exists; /* do nothing if stats name already exists */ bool transformed; /* true when transformStatsStmt is finished */ + bool if_not_exists; /* do nothing if stats name already exists */ } CreateStatsStmt; /*