pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_buffercache: Add pg_buffercache_summary()
Date: Thu, 13 Oct 2022 17:04:04 +0000
Message-ID: <E1oj1cq-002DbH-9h@gemulon.postgresql.org> (raw)

pg_buffercache: Add pg_buffercache_summary()

Using pg_buffercache_summary() is significantly cheaper than querying
pg_buffercache and summarizing in SQL.

Author: Melih Mutlu <m.melihmutlu@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Reviewed-by: Zhang Mingli <zmlpostgres@gmail.com>
Discussion: https://postgr.es/m/CAGPVpCQAXYo54Q%3D8gqBsS%3Du0uk9qhnnq4%2B710BtUhUisX1XGEg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2589434ae0fbfe08e46b6a4ffba400140b636074

Modified Files
--------------
contrib/pg_buffercache/Makefile                    |   3 +-
contrib/pg_buffercache/expected/pg_buffercache.out |  33 ++++++
contrib/pg_buffercache/meson.build                 |   1 +
.../pg_buffercache/pg_buffercache--1.3--1.4.sql    |  17 +++
contrib/pg_buffercache/pg_buffercache.control      |   2 +-
contrib/pg_buffercache/pg_buffercache_pages.c      |  67 ++++++++++++
contrib/pg_buffercache/sql/pg_buffercache.sql      |  18 ++++
doc/src/sgml/pgbuffercache.sgml                    | 114 ++++++++++++++++++++-
8 files changed, 250 insertions(+), 5 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1oj1cq-002DbH-9h@gemulon.postgresql.org>
Permalink:  ../E1oj1cq-002DbH-9h@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oj1cq-002DbH-9h@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pg_buffercache: Add pg_buffercache_summary()
  In-Reply-To: <E1oj1cq-002DbH-9h@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox