diff options
author | Jeff Davis <jdavis@postgresql.org> | 2020-09-15 21:34:05 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2020-09-15 21:42:25 -0700 |
commit | c8aeaf3ab31edeedf1791e37c74bcedf61a916ed (patch) | |
tree | 601b35f13b5a01780faeda155851ff80646a6af8 /src/backend/access/gist/gistvalidate.c | |
parent | 3bd35d4f516adfc492360b20e72911949c961e47 (diff) | |
download | postgresql-c8aeaf3ab31edeedf1791e37c74bcedf61a916ed.tar.gz |
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
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions