Scan buffercache for a table - Mailing list pgsql-hackers

From Amin
Subject Scan buffercache for a table
Date
Msg-id CAF-KA8-nZwkWsPsOx=LSP5BrVNxCsn-pZa03L9=ZM0GhdiXutA@mail.gmail.com
Whole thread Raw
Responses Re: Scan buffercache for a table
List pgsql-hackers
Hi,

I am looking for function calls to scan the buffer cache for a table and find the cached pages. I want to find out which pages are cached and which of them are dirty. Having the relation id, how can I do that? I have gone through bufmgr.c and relcache.c, but could not find a way to get relation-specific pages from the buffer cache.

Thank you!

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Assertion failure in SnapBuildInitialSnapshot()
Next
From: Yugo NAGATA
Date:
Subject: Re: Allow an extention to be updated without a script