Widen tuple counter variables from long to int64

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 9a83afecb7ec6e828b7dbef3133f3dd8b0b4dddb
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2019-04-30T14:27:38Z
Releases: 12.0
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

Files

PathChange+/−
src/backend/access/hash/hashsort.c modified +1 −1
src/backend/access/nbtree/nbtsort.c modified +1 −1

Discussion