mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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
This commit is contained in:
@ -2032,10 +2032,10 @@ typedef struct SortState
|
||||
typedef struct IncrementalSortGroupInfo
|
||||
{
|
||||
int64 groupCount;
|
||||
long maxDiskSpaceUsed;
|
||||
long totalDiskSpaceUsed;
|
||||
long maxMemorySpaceUsed;
|
||||
long totalMemorySpaceUsed;
|
||||
int64 maxDiskSpaceUsed;
|
||||
int64 totalDiskSpaceUsed;
|
||||
int64 maxMemorySpaceUsed;
|
||||
int64 totalMemorySpaceUsed;
|
||||
bits32 sortMethods; /* bitmask of TuplesortMethod */
|
||||
} IncrementalSortGroupInfo;
|
||||
|
||||
|
Reference in New Issue
Block a user