Use int64 instead of long in incremental sort code

David Rowley <drowley@postgresql.org>

Commit: 6ee3b5fb990ea11992b0db960d79b1fbe7b5e8e5
Author: David Rowley <drowley@postgresql.org>
Date: 2020-08-02T02:24:46Z
Releases: 14.0
Use int64 instead of long in incremental sort code

Windows 64bit has 4-byte long values which is not suitable for tracking
disk space usage in the incremental sort code. Let's just make all these
fields int64s.

Author: James Coleman
Discussion: https://postgr.es/m/CAApHDvpky%2BUhof8mryPf5i%3D6e6fib2dxHqBrhp0Qhu0NeBhLJw%40mail.gmail.com
Backpatch-through: 13, where the incremental sort code was added

Files

PathChange+/−
src/backend/commands/explain.c modified +10 −10
src/include/nodes/execnodes.h modified +4 −4
src/include/utils/tuplesort.h modified +1 −1

Discussion