git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3bd35d4) | patch
Change LogicalTapeSetBlocks() to use nBlocksWritten.
2020年9月16日 04:34:05 +0000 (21:34 -0700)
2020年9月16日 04:42:25 +0000 (21:42 -0700)
commit c8aeaf3ab31edeedf1791e37c74bcedf61a916ed
Change LogicalTapeSetBlocks() to use nBlocksWritten.

Previously, it was based on nBlocksAllocated to account for tapes with
open write buffers that may not have made it to the BufFile yet.

That was unnecessary, because callers do not need to get the number of
blocks while a tape has an open write buffer; and it also conflicted
with the preallocation logic added for HashAgg.

Reviewed-by: Peter Geoghegan
Discussion: https://postgr.es/m/ce5af05900fdbd0e9185747825a7423c48501964.camel@j-davis.com
Backpatch-through: 13
src/backend/executor/nodeAgg.c diff | blob | blame | history
src/backend/utils/sort/logtape.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /