Re: relpages in pg_class - Mailing list pgsql-docs

From Alvaro Herrera
Subject Re: relpages in pg_class
Date
Msg-id 20220819160133.l2m47puqpjzk3mrh@alvherre.pgsql
Whole thread Raw
In response to Re: relpages in pg_class  (Bruce Momjian <bruce@momjian.us>)
Responses Re: relpages in pg_class
List 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/)



pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: relpages in pg_class
Next
From: Tom Lane
Date:
Subject: Re: relpages in pg_class