Re: Summary function for pg_buffercache

From: Aleksander Alekseev <aleksander(at)timescale(dot)com>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Melih Mutlu <m(dot)melihmutlu(at)gmail(dot)com>
Subject: Re: Summary function for pg_buffercache
Date: 2022-09-09 21:14:33
Message-ID: CAJ7c6TP8bsyBzxv5uFwiGMe6HbgbqY32VFokpN7o4er7WH+29A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
v4-0001-Added-pg_buffercache_summary-function.patch application/octet-stream 11.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-09-09 21:20:12 Re: configure --with-uuid=bsd fails on NetBSD
Previous Message Tom Lane 2022-09-09 20:25:29 Re: Expand palloc/pg_malloc API