logtape.c: do not preallocate for tapes when sorting
Jeff Davis <jdavis@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/nodeAgg.c | modified | +1 −1 |
| src/backend/utils/sort/logtape.c | modified | +25 −13 |
| src/backend/utils/sort/tuplesort.c | modified | +4 −3 |
| src/include/utils/logtape.h | modified | +2 −1 |
Discussion
- logtape.c stats don't account for unused "prefetched" block numbers 33 messages · 2020-07-30 → 2020-09-16