diff options
| author | David Rowley | 2020-08-02 02:23:57 +0000 |
|---|---|---|
| committer | David Rowley | 2020-08-02 02:23:57 +0000 |
| commit | 22c105595fc736ae94ce3b806da16b0bd8e94fb8 (patch) | |
| tree | a2a4d97effac2c7617bce0f5e3928dfe1179dc77 /src/include/utils | |
| 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/utils')
| -rw-r--r-- | src/include/utils/tuplesort.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/utils/tuplesort.h b/src/include/utils/tuplesort.h index d992b4875a5..9e76666fe94 100644 --- a/src/include/utils/tuplesort.h +++ b/src/include/utils/tuplesort.h @@ -90,7 +90,7 @@ typedef struct TuplesortInstrumentation { TuplesortMethod sortMethod; /* sort algorithm used */ TuplesortSpaceType spaceType; /* type of space spaceUsed represents */ - long spaceUsed; /* space consumption, in kB */ + int64 spaceUsed; /* space consumption, in kB */ } TuplesortInstrumentation; |
