Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 13a1ca1

Browse files
committed
Change position of field "transformed" in struct CreateStatsStmt.
Resolve the disagreement with nodes/*funcs.c field order in favor of the latter, which is better-aligned with the IndexStmt field order. This field is new in v14. Discussion: https://postgr.es/m/20210611045546.GA573364@rfd.leadboat.com
1 parent d0e750c commit 13a1ca1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/parser/parse_utilcmd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1980,8 +1980,8 @@ generateClonedExtStatsStmt(RangeVar *heapRel, Oid heapRelid,
19801980
stats->exprs = def_names;
19811981
stats->relations = list_make1(heapRel);
19821982
stats->stxcomment = NULL;
1983-
stats->if_not_exists = false;
19841983
stats->transformed = true; /* don't need transformStatsStmt again */
1984+
stats->if_not_exists = false;
19851985

19861986
/* Clean up */
19871987
ReleaseSysCache(ht_stats);

src/include/nodes/parsenodes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2912,8 +2912,8 @@ typedef struct CreateStatsStmt
29122912
List *exprs; /* expressions to build statistics on */
29132913
List *relations; /* rels to build stats on (list of RangeVar) */
29142914
char *stxcomment; /* comment to apply to stats, or NULL */
2915-
bool if_not_exists; /* do nothing if stats name already exists */
29162915
bool transformed; /* true when transformStatsStmt is finished */
2916+
bool if_not_exists; /* do nothing if stats name already exists */
29172917
} CreateStatsStmt;
29182918

29192919
/*

0 commit comments

Comments
 (0)