Re: Set hint bits upon eviction from BufMgr - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Set hint bits upon eviction from BufMgr
Date
Msg-id 4651.1301321959@sss.pgh.pa.us
Whole thread Raw
In response to Re: Set hint bits upon eviction from BufMgr  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Set hint bits upon eviction from BufMgr
Re: Set hint bits upon eviction from BufMgr
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Mar 28, 2011 at 9:48 AM, Merlin Moncure <mmoncure@gmail.com> wrote:
>> I was thinking about setting a
>> flag in the buffer (BM_HEAP) that gets set by the loader which flags
>> the buffer for later inspection. �Is there a simpler way to do this?

> Hmm.  That's slightly crufty, but it might be OK.  At least, I don't
> have a better idea.

The major problem with all of this is that the bgwriter has no idea
which buffers contain heap pages.  And I'm not convinced it's a good
idea to try to let it know that.  If we get to the point where bgwriter
is trying to do catalog accesses, we are in for a world of pain.
(Can you say "modularity violation"?  How about "deadlock"?)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Additional options for Sync Replication
Next
From: Shridhar Polas
Date:
Subject: Triggers on system catalog