HelloYou can use pg_buffercache contrib module: https://stream.boxwatch.ru/docs/current/static/pgbuffercache.html
pg_relation_size - yes, its full size on disk regardless buffer cache
regards, Sergei