logtape.c: do not preallocate for tapes when sorting

Jeff Davis <jdavis@postgresql.org>

Commit: 07589649639410032df281e98469db88a0b86271
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2020-09-12T00:10:02Z
Releases: 14.0
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

Discussion