Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd57eceb

Browse files
committed
Add transformed flag to nodes/*funcs.c for CREATE STATISTICS
Commita4d75c8 added a new flag, tracking if the statement wasprocessed by transformStatsStmt(), but failed to add this flag tonodes/*funcs.c.Catversion bump, due to adding a flag to copy/equal/out functions.Reported-by: Noah MischDiscussion:https://postgr.es/m/ad7891d2-e90c-b446-9fe2-7419143847d7%40enterprisedb.com
1 parenta2dee32 commitd57eceb

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
returnnewnode;

‎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-
#defineCATALOG_VERSION_NO202106061
56+
#defineCATALOG_VERSION_NO202106062
5757

5858
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp