]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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:21:00 +0000 (17:21 -0700)
commit93106d71a18afdda2b9bf6e6b8e6c7f9cea2d0ef
tree1e559e7baee81a1537e484b736481c8450b1a9ee
parentaeb781107a7ca0cfe109c188534ecbf9c392f6ba
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