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 1njks8-0006Ck-7w for pgsql-docs@arkaria.postgresql.org; Wed, 27 Apr 2022 16:50:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njks6-0000nZ-Uv for pgsql-docs@arkaria.postgresql.org; Wed, 27 Apr 2022 16:50:34 +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 1njks6-0000nQ-NE for pgsql-docs@lists.postgresql.org; Wed, 27 Apr 2022 16:50:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njks4-0004aQ-6m for pgsql-docs@lists.postgresql.org; Wed, 27 Apr 2022 16:50:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 23RGoUjZ395460; Wed, 27 Apr 2022 12:50:30 -0400 From: Tom Lane To: caetano@icmc.usp.br cc: pgsql-docs@lists.postgresql.org Subject: Re: Mixed field in table 70.3 In-reply-to: <165107073604.680.6504816042790949419@wrigleys.postgresql.org> References: <165107073604.680.6504816042790949419@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Wed, 27 Apr 2022 14:45:36 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <395458.1651078230.1@sss.pgh.pa.us> Date: Wed, 27 Apr 2022 12:50:30 -0400 Message-ID: <395459.1651078230@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Doc comments form writes: > Page: https://www.postgresql.org/docs/14/storage-page-layout.html > The 7th line states: > pd_pagesize_version uint16 2 bytes Page size and layout version number > information > In fact there are two smallints, so the table should show two attributes: > pd_pagesize uint16 2 bytes Page size > version uint16 2 bytes Layout version number information No, I don't think so --- this documentation matches the actual code, in bufpage.h: ... LocationIndex pd_lower; /* offset to start of free space */ LocationIndex pd_upper; /* offset to end of free space */ LocationIndex pd_special; /* offset to start of special space */ uint16 pd_pagesize_version; TransactionId pd_prune_xid; /* oldest prunable XID, or zero if none */ ItemIdData pd_linp[FLEXIBLE_ARRAY_MEMBER]; /* line pointer array */ ... regards, tom lane