| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: pg_buffercache: Add pg_buffercache_summary() |
| Date: | 2022-10-13 17:04:04 |
| Message-ID: | E1oj1cq-002DbH-9h@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)melihmutlu(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Reviewed-by: Aleksander Alekseev <aleksander(at)timescale(dot)com>
Reviewed-by: Zhang Mingli <zmlpostgres(at)gmail(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2022-10-13 21:28:51 | pgsql: Remove redundant memset call following palloc0 |
| Previous Message | Alvaro Herrera | 2022-10-13 11:37:07 | pgsql: Fix typo in CREATE PUBLICATION reference page |