Scan buffercache for a table

From: Amin <amin(dot)fallahi(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Scan buffercache for a table
Date: 2023-01-31 02:01:08
Message-ID: CAF-KA8-nZwkWsPsOx=LSP5BrVNxCsn-pZa03L9=ZM0GhdiXutA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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!

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Yugo NAGATA 2023-01-31 02:17:22 Re: Allow an extention to be updated without a script
Previous Message Masahiko Sawada 2023-01-31 01:19:13 Re: Assertion failure in SnapBuildInitialSnapshot()