]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove unnecessary calls of FlushRelationBuffers: there is no need
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Mar 2005 22:00:54 +0000 (22:00 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Mar 2005 22:00:54 +0000 (22:00 +0000)
commit354049c709c9d7d0918272e10e4f30d7f8f38788
tree741c359a1e6494c3ef1b205b84603fd48239b015
parent683f60da3d837236de5c4249fa2a62c8a94616ca
Remove unnecessary calls of FlushRelationBuffers: there is no need
to write out data that we are about to tell the filesystem to drop.
smgr_internal_unlink already had a DropRelFileNodeBuffers call to
get rid of dead buffers without a write after it's no longer possible
to roll back the deleting transaction.  Adding a similar call in
smgrtruncate simplifies callers and makes the overall division of
labor clearer.  This patch removes the former behavior that VACUUM
would write all dirty buffers of a relation unconditionally.
src/backend/access/nbtree/nbtree.c
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/commands/cluster.c
src/backend/commands/tablecmds.c
src/backend/commands/vacuum.c
src/backend/commands/vacuumlazy.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/smgr/smgr.c
src/include/storage/bufmgr.h