Add pinning_backends column to the pg_buffercache extension.

Andres Freund <andres@anarazel.de>

Commit: f57791985ac3d776cb67e9d69befde538cfdf13b
Author: Andres Freund <andres@anarazel.de>
Date: 2014-08-21T22:28:37Z
Releases: 9.5.0
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.

Files