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

Add the usage count statistics to the information available in

contrib/pgbuffercache.

Greg Smith
This commit is contained in:
Bruce Momjian
2007-04-07 16:09:14 +00:00
parent 5695f38f74
commit b0194ab110
3 changed files with 23 additions and 14 deletions

View File

@ -12,7 +12,7 @@ LANGUAGE C;
CREATE VIEW pg_buffercache AS
SELECT P.* FROM pg_buffercache_pages() AS P
(bufferid integer, relfilenode oid, reltablespace oid, reldatabase oid,
relblocknumber int8, isdirty bool);
relblocknumber int8, isdirty bool, usagecount int2);
-- Don't want these to be available at public.
REVOKE ALL ON FUNCTION pg_buffercache_pages() FROM PUBLIC;