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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy