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

Improve /contrib/pg_buffercache installation to use BEGIN/COMMIT,

improve examples.

Mark Kirkwood
This commit is contained in:
Bruce Momjian
2006-04-26 22:50:17 +00:00
parent 136bea1540
commit 525de8d556
2 changed files with 6 additions and 2 deletions

View File

@ -76,8 +76,9 @@ Sample output
isdirty boolean);
regression=# SELECT c.relname, count(*) AS buffers
FROM pg_class c, pg_buffercache b
WHERE b.relfilenode = c.relfilenode
FROM pg_class c INNER JOIN pg_buffercache b
ON b.relfilenode = c.relfilenode INNER JOIN pg_database d
ON (b.reldatabase = d.oid AND d.datname = current_database())
GROUP BY c.relname
ORDER BY 2 DESC LIMIT 10;
relname | buffers