Skip site navigation (1) Skip section navigation (2)

pgsql: Remove unnecessary calls of FlushRelationBuffers: there is no

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove unnecessary calls of FlushRelationBuffers: there is no
Date: 2005-03-20 22:00:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
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.

Modified Files:
        nbtree.c (r1.124 -> r1.125)
        heap.c (r1.280 -> r1.281)
        index.c (r1.247 -> r1.248)
        cluster.c (r1.132 -> r1.133)
        tablecmds.c (r1.147 -> r1.148)
        vacuum.c (r1.304 -> r1.305)
        vacuumlazy.c (r1.50 -> r1.51)
        bufmgr.c (r1.187 -> r1.188)
        smgr.c (r1.85 -> r1.86)
        bufmgr.h (r1.92 -> r1.93)

pgsql-committers by date

Next:From: Tom LaneDate: 2005-03-20 22:27:53
Subject: pgsql: On Windows, use QueryPerformanceCounter instead of gettimeofday
Previous:From: User CmajDate: 2005-03-20 16:11:24
Subject: pgaccess - pgaccess: added a third param to showError for parent window

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group