Re: Summary function for pg_buffercache

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Melih Mutlu <m.melihmutlu@gmail.com>
Date: 2022-09-09T21:14:33Z
Lists: pgsql-hackers

Attachments

Hi hackers,

> > I suggest we focus on saving the memory first and then think about the
> > performance, if necessary.
>
> +1

I made a mistake in v3 cfbot complained about. It should have been:

```
if (RelFileNumberIsValid(BufTagGetRelNumber(&bufHdr->tag)))
```

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.