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 1lJhad-0006r2-RR for pgsql-docs@arkaria.postgresql.org; Tue, 09 Mar 2021 19:00:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJhac-0002gH-By for pgsql-docs@arkaria.postgresql.org; Tue, 09 Mar 2021 19:00:18 +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 1lJhac-0002gA-6U for pgsql-docs@lists.postgresql.org; Tue, 09 Mar 2021 19:00:18 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJhaZ-0005BJ-OA for pgsql-docs@lists.postgresql.org; Tue, 09 Mar 2021 19:00:17 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1lJhaX-0005oG-H4; Tue, 09 Mar 2021 14:00:13 -0500 Date: Tue, 9 Mar 2021 14:00:13 -0500 From: Bruce Momjian To: hemarbruno@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Transaction ID modulo Message-ID: <20210309190013.GG26575@momjian.us> References: <161365647746.686.4039706385099641166@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <161365647746.686.4039706385099641166@wrigleys.postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Feb 18, 2021 at 01:54:37PM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/13/routine-vacuuming.html > Description: > > Hello, > > transaction ID modulo is not correct. > > The sentence "Normal XIDs are compared using modulo-2^32 arithmetic" should > be "Normal XIDs are compared using modulo-2^31 arithmetic" Uh, we use full 32-bit values that wrap around; the top bit is just another bit to us. I think the docs are correct. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee