Re: relpages in pg_class

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: shangzi(dot)x(at)columbia(dot)edu, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: relpages in pg_class
Date: 2022-08-19 16:01:33
Message-ID: 20220819160133.l2m47puqpjzk3mrh@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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/)

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2022-08-19 16:39:55 Re: relpages in pg_class
Previous Message Bruce Momjian 2022-08-19 15:46:50 Re: relpages in pg_class