Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oP7U4-0007ON-Gz for pgsql-docs@arkaria.postgresql.org; Fri, 19 Aug 2022 19:16:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oP7U3-0004nJ-EU for pgsql-docs@arkaria.postgresql.org; Fri, 19 Aug 2022 19:16:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oP7U3-0004nA-7J for pgsql-docs@lists.postgresql.org; Fri, 19 Aug 2022 19:16:43 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oP7Tz-0005yX-Je for pgsql-docs@lists.postgresql.org; Fri, 19 Aug 2022 19:16:42 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1oP7Ts-0098PL-2z; Fri, 19 Aug 2022 15:16:32 -0400 Date: Fri, 19 Aug 2022 15:16:32 -0400 From: Bruce Momjian To: Peter Geoghegan Cc: Tom Lane , Alvaro Herrera , shangzi.x@columbia.edu, Pg Docs Subject: Re: relpages in pg_class Message-ID: References: <20220819160133.l2m47puqpjzk3mrh@alvherre.pgsql> <3203690.1660927195@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Aug 19, 2022 at 11:25:52AM -0700, Peter Geoghegan wrote: > On Fri, Aug 19, 2022 at 9:40 AM Tom Lane wrote: > > Yeah, we use "blocks" and "pages" interchangeably, which is something > > I don't feel a need to change; but evidently the OP didn't realize that. > > This is a job for the glossary, perhaps? > > I think that they're synonyms that can often (but not always) be used > interchangeably. I *think* that this understanding is shared by other > people, though I should check. Here goes: > > To me, "block" emphasizes on-disk/relfilenode storage. Something that > exists at a particular physical offset in a particular file (a > BlockNumber + relfilenode). On the other hand, the term "page" > emphasizes the in-memory format, and the indirection provided by the > bufpage.c slotted page format (i.e. line pointer array indirection). Yes, I have heard the block-disk, page-memory explanation before. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson