pg_buffercache: Add pg_buffercache_summary()
authorAndres Freund <[email protected]>
Thu, 13 Oct 2022 16:55:46 +0000 (09:55 -0700)
committerAndres Freund <[email protected]>
Thu, 13 Oct 2022 16:55:46 +0000 (09:55 -0700)
commit2589434ae0fbfe08e46b6a4ffba400140b636074
tree495f2f835d353c17bb4a0f4c65e487487484484f
parent7f8d9cedb374c9a23f0730f92a0b88d479325ba9
pg_buffercache: Add pg_buffercache_summary()

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

Author: Melih Mutlu <[email protected]>
Reviewed-by: Andres Freund <[email protected]>
Reviewed-by: Aleksander Alekseev <[email protected]>
Reviewed-by: Zhang Mingli <[email protected]>
Discussion: https://postgr.es/m/CAGPVpCQAXYo54Q%3D8gqBsS%3Du0uk9qhnnq4%2B710BtUhUisX1XGEg%40mail.gmail.com
contrib/pg_buffercache/Makefile
contrib/pg_buffercache/expected/pg_buffercache.out
contrib/pg_buffercache/meson.build
contrib/pg_buffercache/pg_buffercache--1.3--1.4.sql [new file with mode: 0644]
contrib/pg_buffercache/pg_buffercache.control
contrib/pg_buffercache/pg_buffercache_pages.c
contrib/pg_buffercache/sql/pg_buffercache.sql
doc/src/sgml/pgbuffercache.sgml