1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

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.
This commit is contained in:
Andres Freund
2014-08-22 00:28:37 +02:00
parent ce486056ec
commit f57791985a
6 changed files with 58 additions and 6 deletions

View File

@ -106,6 +106,13 @@
<entry>Clock-sweep access count</entry>
</row>
<row>
<entry><structfield>pinning_backends</structfield></entry>
<entry><type>integer</type></entry>
<entry></entry>
<entry>Number of backends pinning this buffer</entry>
</row>
</tbody>
</tgroup>
</table>