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

Commitd9c5b9a

Browse files
committed
Fix bug in brin_minmax_multi_union
When calling sort_expanded_ranges() we need to remember the returnvalue, because the function sorts and also deduplicates the ranges. Sothe number of ranges may decrease. brin_minmax_multi_union failed to dothat, which resulted in crashes due to bogus ranges (equal minval/maxvalbut not marked as compacted).Reported-by: Jaime CasanovaDiscussion:https://postgr.es/m/20210404052550.GA4376%40ahch-to
1 parent4908684 commitd9c5b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/access/brin/brin_minmax_multi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ brin_minmax_multi_union(PG_FUNCTION_ARGS)
27942794
BTLessStrategyNumber);
27952795

27962796
/* sort the expanded ranges */
2797-
sort_expanded_ranges(cmpFn,colloid,eranges,neranges);
2797+
neranges=sort_expanded_ranges(cmpFn,colloid,eranges,neranges);
27982798

27992799
/*
28002800
* We've loaded two different lists of expanded ranges, so some of them

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp