diff options
author | David Rowley <drowley@postgresql.org> | 2020-08-02 14:23:57 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2020-08-02 14:23:57 +1200 |
commit | 22c105595fc736ae94ce3b806da16b0bd8e94fb8 (patch) | |
tree | a2a4d97effac2c7617bce0f5e3928dfe1179dc77 /src/include/nodes/execnodes.h | |
parent | 725b43b9c3b3c25c60ac717c41047ad0dffb1312 (diff) |
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
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r-- | src/include/nodes/execnodes.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index e2aa07cb458..1534500c7b2 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -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; |