mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +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
|
||||
|
Reference in New Issue
Block a user