From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Bruce Momjian <bruce@momjian.us>
Cc: shangzi.x@columbia.edu
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: relpages in pg_class
Date: Fri, 19 Aug 2022 18:01:33 +0200
Message-ID: <20220819160133.l2m47puqpjzk3mrh@alvherre.pgsql> (raw)
In-Reply-To: <Yv+wakQStXq0EsGu@momjian.us>
On 2022-Aug-19, Bruce Momjian wrote:
> On Fri, Aug 19, 2022 at 04:10:30AM +0000, PG Doc comments form wrote:
> > The following documentation comment has been logged on the website:
> >
> > Page: https://www.postgresql.org/docs/14/catalog-pg-class.html
> > Description:
> >
> > From source code, the relpage is the number of blocks. But, at the document,
> > it is written as Size of the on-disk representation of this table in pages
> > (of size BLCKSZ).
>
> Well, blocks and pages are the same size, so I don't see the problem.
If you think about operating system "blocks" rather than Postgres
"blocks", I can see how this can be interpreted differently. I'm not
sure if this is a good place to make that distinction, though; I mean,
if we do, how many other places should we patch similarly?
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"Small aircraft do not crash frequently ... usually only once!"
(ponder, http://thedailywtf.com/)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: alvherre@alvh.no-ip.org, bruce@momjian.us, shangzi.x@columbia.edu, pgsql-docs@lists.postgresql.org
Subject: Re: relpages in pg_class
In-Reply-To: <20220819160133.l2m47puqpjzk3mrh@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox