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 1oP4RV-0004fp-Nc for pgsql-docs@arkaria.postgresql.org; Fri, 19 Aug 2022 16:01:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oP4RT-0001kH-Nb for pgsql-docs@arkaria.postgresql.org; Fri, 19 Aug 2022 16:01:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oP4RT-0001k8-0K for pgsql-docs@lists.postgresql.org; Fri, 19 Aug 2022 16:01:51 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oP4RK-0006F4-SH for pgsql-docs@lists.postgresql.org; Fri, 19 Aug 2022 16:01:50 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 57BEB3200907; Fri, 19 Aug 2022 12:01:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 19 Aug 2022 12:01:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1660924897; x=1661011297; bh=n iGmyy7QWoedZndHCz6OiSs2D2p4gXpriogC0pxu5F8=; b=A/pKX3wqrRPbw1I85 NdU2AIJiMBwigTpHufJIYUopGfZDV8iR/HYbg3Eu01v+Qcv6UAo28H9gVUirg8P6 mGGbMNpWm7Sm+qbvKmzplg7hQ/MuKvvBGpqORfWmHXdnfVuqd5q+VlQF7Ht36OfI 0xIeWhTew/qyaVykW4MPhkD75p1mIfJ/mYLd6j6Qtj/t2U3Qi3plcflHgz2wVs/p FDILLYF8NyRQumnfw2I5jPenCgXmTPnYbb0bm4bDkQja/LRDOwuguelUgmGc5oGo JkUYgAY3/X0Rex8I61zgLz3ntxDbWbbpoUmLXiwi2cYWAyQjlrP5eF4Dl70sVZyg d0RHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeiuddgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepteefueegueevgfduleeftdevvdfhueevtdeutdekgfek jeduiefhvdefleevveffnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghdpvg hnthgvrhhprhhishgvuggsrdgtohhmpdhthhgvuggrihhlhiifthhfrdgtohhmnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrh gvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 19 Aug 2022 12:01:36 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id AEF11373; Fri, 19 Aug 2022 18:01:33 +0200 (CEST) Date: Fri, 19 Aug 2022 18:01:33 +0200 From: Alvaro Herrera To: Bruce Momjian Cc: shangzi.x@columbia.edu, pgsql-docs@lists.postgresql.org Subject: Re: relpages in pg_class Message-ID: <20220819160133.l2m47puqpjzk3mrh@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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/)