diff options
| author | Jeff Davis <jdavis@postgresql.org> | 2020-09-11 17:10:02 -0700 |
|---|---|---|
| committer | Jeff Davis <jdavis@postgresql.org> | 2020-09-11 17:10:02 -0700 |
| commit | 07589649639410032df281e98469db88a0b86271 (patch) | |
| tree | 9d9e467f4a04d7ad9361bc379e0bd923c736c309 /src/include/utils | |
| parent | 7634bd4f6d38bdef1fe442df5c2e0da73f1f90f4 (diff) | |
logtape.c: do not preallocate for tapes when sorting
The preallocation logic is only useful for HashAgg, so disable it when
sorting.
Also, adjust an out-of-date comment.
Reviewed-by: Peter Geoghegan
Discussion: https://postgr.es/m/CAH2-Wzn_o7tE2+hRVvwSFghRb75AJ5g-nqGzDUqLYMexjOAe=g@mail.gmail.com
Backpatch-through: 13
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/logtape.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/logtape.h b/src/include/utils/logtape.h index 39a99174afe..da5159e4c6c 100644 --- a/src/include/utils/logtape.h +++ b/src/include/utils/logtape.h @@ -54,7 +54,8 @@ typedef struct TapeShare * prototypes for functions in logtape.c */ -extern LogicalTapeSet *LogicalTapeSetCreate(int ntapes, TapeShare *shared, +extern LogicalTapeSet *LogicalTapeSetCreate(int ntapes, bool preallocate, + TapeShare *shared, SharedFileSet *fileset, int worker); extern void LogicalTapeSetClose(LogicalTapeSet *lts); extern void LogicalTapeSetForgetFreeSpace(LogicalTapeSet *lts); |
