How large is a "buffer" in PostgreSQL

Posted by Konrad Garus on Stack Overflow See other posts from Stack Overflow or by Konrad Garus
Published on 2010-05-22T08:08:55Z Indexed on 2010/05/22 8:10 UTC
Read the original article Hit count: 270

Filed under:
|

I am using pg_buffercache module for finding hogs eating up my RAM cache. For example when I run this query:

SELECT c.relname, count(*) AS buffers
FROM pg_buffercache b INNER JOIN pg_class c
    ON b.relfilenode = c.relfilenode AND
       b.reldatabase IN (0, (SELECT oid FROM pg_database WHERE datname = current_database()))
GROUP BY c.relname
ORDER BY 2 DESC
LIMIT 10;

I discover that sample_table is using 120 buffers.

How much is 120 buffers in bytes?

© Stack Overflow or respective owner

Related posts about postgresql

Related posts about Performance