logtape.c: do not preallocate for tapes when sorting

Jeff Davis <jdavis@postgresql.org>

Commit: 93106d71a18afdda2b9bf6e6b8e6c7f9cea2d0ef
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2020-09-12T00:21:00Z
Releases: 13.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