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

Commit9a83afe

Browse files
committed
Widen tuple counter variables from long to int64
Mistake inab0dfc9; progress reporting would have wrapped aroundfor indexes created with more than 2^31 tuples.Reported-by: Peter GeogheganDiscussion:https://postgr.es/m/CAH2-Wz=WbNxc5ob5NJ9yqo2RMJ0q4HXDS30GVCobeCvC9A1L9A@mail.gmail.com
1 parent3dbb317 commit9a83afe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/access/hash/hashsort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void
118118
_h_indexbuild(HSpool*hspool,RelationheapRel)
119119
{
120120
IndexTupleitup;
121-
longtups_done=0;
121+
int64tups_done=0;
122122
#ifdefUSE_ASSERT_CHECKING
123123
uint32hashkey=0;
124124
#endif

‎src/backend/access/nbtree/nbtsort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ _bt_load(BTWriteState *wstate, BTSpool *btspool, BTSpool *btspool2)
11301130
inti,
11311131
keysz=IndexRelationGetNumberOfKeyAttributes(wstate->index);
11321132
SortSupportsortKeys;
1133-
longtuples_done=0;
1133+
int64tuples_done=0;
11341134

11351135
if (merge)
11361136
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp