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

Commit0c2dda1

Browse files
committed
Fix incorrectly reported stats kind in "can't happen" ERROR
The error message(s) were reporting the stats kind of 'f', which is notcorrect as that's for the "dependencies" statistics kind.Reported-by: Horst ReitererReviewed-by: Richard GuoDiscussion:https://postgr.es/m/18375-ba99383eb9062d6a@postgresql.orgBackpatch-through: 12, where MCV extended stats were added.
1 parent217928d commit0c2dda1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/statistics/extended_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2480,7 +2480,7 @@ statext_expressions_load(Oid stxoid, int idx)
24802480
if (isnull)
24812481
elog(ERROR,
24822482
"requested statistics kind \"%c\" is not yet built for statistics object %u",
2483-
STATS_EXT_DEPENDENCIES,stxoid);
2483+
STATS_EXT_EXPRESSIONS,stxoid);
24842484

24852485
eah=DatumGetExpandedArray(value);
24862486

‎src/backend/statistics/mcv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ statext_mcv_load(Oid mvoid)
575575
if (isnull)
576576
elog(ERROR,
577577
"requested statistics kind \"%c\" is not yet built for statistics object %u",
578-
STATS_EXT_DEPENDENCIES,mvoid);
578+
STATS_EXT_MCV,mvoid);
579579

580580
result=statext_mcv_deserialize(DatumGetByteaP(mcvlist));
581581

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp