Re: Summary function for pg_buffercache

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Melih Mutlu <m.melihmutlu@gmail.com>, Andres Freund <andres@anarazel.de>
Date: 2022-09-21T13:08:51Z
Lists: pgsql-hackers

Attachments

Hi Andres,

> All you need to do is to read BufferDesc->state into a local variable and then make decisions based on that

You are right, thanks.

Here is the corrected patch.

-- 
Best regards,
Aleksander Alekseev

Commits

  1. pg_buffercache: Add pg_buffercache_summary()

  2. Revert 56-bit relfilenode change and follow-up commits.