| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Add pinning_backends column to the pg_buffercache extension. |
| Date: | 2014-08-21 22:29:04 |
| Message-ID: | E1XKaqu-0007Ve-1G@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Add pinning_backends column to the pg_buffercache extension.
The new column shows how many backends have a buffer pinned. That can
be useful during development or to diagnose production issues
e.g. caused by vacuum waiting for cleanup locks.
To handle upgrades transparently - the extension might be used in
views - deal with callers expecting the old number of columns.
Reviewed by Fujii Masao and Rajeev rastogi.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/f57791985ac3d776cb67e9d69befde538cfdf13b
Modified Files
--------------
contrib/pg_buffercache/Makefile | 2 +-
.../pg_buffercache/pg_buffercache--1.0--1.1.sql | 11 ++++++
contrib/pg_buffercache/pg_buffercache--1.0.sql | 20 -----------
contrib/pg_buffercache/pg_buffercache--1.1.sql | 21 +++++++++++
contrib/pg_buffercache/pg_buffercache.control | 2 +-
contrib/pg_buffercache/pg_buffercache_pages.c | 37 ++++++++++++++++++--
doc/src/sgml/pgbuffercache.sgml | 7 ++++
7 files changed, 76 insertions(+), 24 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephen Frost | 2014-08-21 23:13:28 | pgsql: Rework 'MOVE ALL' to 'ALTER .. ALL IN TABLESPACE' |
| Previous Message | Heikki Linnakangas | 2014-08-21 06:57:20 | pgsql: Add #define INT64_MODIFIER for the printf length modifier for 64 |