pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: logtape.c: do not preallocate for tapes when sorting 2+ messages / 1 participants [nested] [flat]
* pgsql: logtape.c: do not preallocate for tapes when sorting @ 2020-09-12 00:20 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Jeff Davis @ 2020-09-12 00:20 UTC (permalink / raw) To: pgsql-committers@lists.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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/07589649639410032df281e98469db88a0b86271 Modified Files -------------- src/backend/executor/nodeAgg.c | 2 +- src/backend/utils/sort/logtape.c | 38 +++++++++++++++++++++++++------------- src/backend/utils/sort/tuplesort.c | 7 ++++--- src/include/utils/logtape.h | 3 ++- 4 files changed, 32 insertions(+), 18 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: logtape.c: do not preallocate for tapes when sorting @ 2020-09-12 00:24 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Jeff Davis @ 2020-09-12 00:24 UTC (permalink / raw) To: pgsql-committers@lists.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 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/93106d71a18afdda2b9bf6e6b8e6c7f9cea2d0ef Modified Files -------------- src/backend/executor/nodeAgg.c | 2 +- src/backend/utils/sort/logtape.c | 38 +++++++++++++++++++++++++------------- src/backend/utils/sort/tuplesort.c | 7 ++++--- src/include/utils/logtape.h | 3 ++- 4 files changed, 32 insertions(+), 18 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-09-12 00:24 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-09-12 00:20 pgsql: logtape.c: do not preallocate for tapes when sorting Jeff Davis <jdavis@postgresql.org> 2020-09-12 00:24 pgsql: logtape.c: do not preallocate for tapes when sorting Jeff Davis <jdavis@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox