mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Widen tuple counter variables from long to int64
Mistake in ab0dfc961b6a; progress reporting would have wrapped around for indexes created with more than 2^31 tuples. Reported-by: Peter Geoghegan Discussion: https://postgr.es/m/CAH2-Wz=WbNxc5ob5NJ9yqo2RMJ0q4HXDS30GVCobeCvC9A1L9A@mail.gmail.com
This commit is contained in:
@ -118,7 +118,7 @@ void
|
||||
_h_indexbuild(HSpool *hspool, Relation heapRel)
|
||||
{
|
||||
IndexTuple itup;
|
||||
long tups_done = 0;
|
||||
int64 tups_done = 0;
|
||||
#ifdef USE_ASSERT_CHECKING
|
||||
uint32 hashkey = 0;
|
||||
#endif
|
||||
|
@ -1130,7 +1130,7 @@ _bt_load(BTWriteState *wstate, BTSpool *btspool, BTSpool *btspool2)
|
||||
int i,
|
||||
keysz = IndexRelationGetNumberOfKeyAttributes(wstate->index);
|
||||
SortSupport sortKeys;
|
||||
long tuples_done = 0;
|
||||
int64 tuples_done = 0;
|
||||
|
||||
if (merge)
|
||||
{
|
||||
|
Reference in New Issue
Block a user