Skip to content

Commit d57eceb

Browse files
committed
Add transformed flag to nodes/*funcs.c for CREATE STATISTICS
Commit a4d75c8 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
1 parent a2dee32 commit d57eceb

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

src/backend/nodes/copyfuncs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3678,6 +3678,7 @@ _copyCreateStatsStmt(const CreateStatsStmt *from)
36783678
COPY_NODE_FIELD(exprs);
36793679
COPY_NODE_FIELD(relations);
36803680
COPY_STRING_FIELD(stxcomment);
3681+
COPY_SCALAR_FIELD(transformed);
36813682
COPY_SCALAR_FIELD(if_not_exists);
36823683

36833684
return newnode;

src/backend/nodes/equalfuncs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,7 @@ _equalCreateStatsStmt(const CreateStatsStmt *a, const CreateStatsStmt *b)
14051405
COMPARE_NODE_FIELD(exprs);
14061406
COMPARE_NODE_FIELD(relations);
14071407
COMPARE_STRING_FIELD(stxcomment);
1408+
COMPARE_SCALAR_FIELD(transformed);
14081409
COMPARE_SCALAR_FIELD(if_not_exists);
14091410

14101411
return true;

src/backend/nodes/outfuncs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2778,6 +2778,7 @@ _outCreateStatsStmt(StringInfo str, const CreateStatsStmt *node)
27782778
WRITE_NODE_FIELD(exprs);
27792779
WRITE_NODE_FIELD(relations);
27802780
WRITE_STRING_FIELD(stxcomment);
2781+
WRITE_BOOL_FIELD(transformed);
27812782
WRITE_BOOL_FIELD(if_not_exists);
27822783
}
27832784

src/include/catalog/catversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/* yyyymmddN */
56-
#define CATALOG_VERSION_NO 202106061
56+
#define CATALOG_VERSION_NO 202106062
5757

5858
#endif

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