• Tom Lane's avatar
    Remove unnecessary calls of FlushRelationBuffers: there is no need · 354049c7
    Tom Lane authored
    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.
    354049c7
cluster.c 26.6 KB