logtape.c: do not preallocate for tapes when sorting
authorJeff Davis <jdavis@postgresql.org>
Sat, 12 Sep 2020 00:10:02 +0000 (17:10 -0700)
committerJeff Davis <jdavis@postgresql.org>
Sat, 12 Sep 2020 00:10:02 +0000 (17:10 -0700)
commit07589649639410032df281e98469db88a0b86271
tree9d9e467f4a04d7ad9361bc379e0bd923c736c309
parent7634bd4f6d38bdef1fe442df5c2e0da73f1f90f4
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
src/backend/executor/nodeAgg.c
src/backend/utils/sort/logtape.c
src/backend/utils/sort/tuplesort.c
src/include/utils/logtape.h