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 1n5GGA-0002gV-6i for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jan 2022 00:04:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n5GG9-0006ew-1i for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jan 2022 00:04:01 +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 1n5GG8-0006en-OQ for pgsql-hackers@lists.postgresql.org; Thu, 06 Jan 2022 00:04:00 +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 1n5GG6-00064S-Cp for pgsql-hackers@postgresql.org; Thu, 06 Jan 2022 00:04:00 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1n5GG3-000dxa-5m; Wed, 05 Jan 2022 19:03:55 -0500 Date: Wed, 5 Jan 2022 19:03:55 -0500 From: Bruce Momjian To: "Finnerty, Jim" Cc: Maxim Orlov , pgsql-hackers Subject: Re: Add 64-bit XIDs into PostgreSQL 15 Message-ID: References: <90BAF0BF-69DF-45C4-821C-76A487210682@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <90BAF0BF-69DF-45C4-821C-76A487210682@amazon.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jan 4, 2022 at 05:49:07PM +0000, Finnerty, Jim wrote: > Hi Maxim, > I’m glad to see that you’re trying to carry the 64-bit XID work forward. I > had not noticed that my earlier patch (also derived from Alexander Kortkov’s > patch) was responded to back in September. Perhaps we can merge some of the > code cleanup that it contained, such as using XID_FMT everywhere and creating a > type for the kind of page returned by TransactionIdToPage() to make the code > cleaner. > > Is your patch functionally the same as the PostgresPro implementation? If > so, I think it would be helpful for everyone’s understanding to read the > PostgresPro documentation on VACUUM. See in particular section “Forced > shrinking pg_clog and pg_multixact” > > https://postgrespro.com/docs/enterprise/9.6/routine-vacuuming# > vacuum-for-wraparound Good point --- we still need vacuum freeze. It would be good to understand how much value we get in allowing vacuum freeze to be done less often --- how big can pg_xact/pg_multixact get before they are problems? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.