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 1oxCMV-0002jJ-Es for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Nov 2022 19:21:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oxCMU-0007Mn-1J for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Nov 2022 19:21:46 +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 1oxCMT-0007Lu-No for pgsql-hackers@lists.postgresql.org; Mon, 21 Nov 2022 19:21:45 +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 1oxCMO-0007k0-PI for pgsql-hackers@lists.postgresql.org; Mon, 21 Nov 2022 19:21:41 +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 2ALJLZ7t3259165; Mon, 21 Nov 2022 14:21:35 -0500 From: Tom Lane To: Peter Eisentraut cc: Maxim Orlov , Thom Brown , Zhang Mingli , Michael Paquier , Justin Pryzby , Dilip Kumar , Pavel Borisov , Aleksander Alekseev , pgsql-hackers@lists.postgresql.org, Stephen Frost , Alexander Korotkov , Andres Freund , Ilya Anfimov Subject: Re: Add 64-bit XIDs into PostgreSQL 15 In-reply-to: <21fc23b4-c47f-959f-9123-a0f25f0f458d@enterprisedb.com> References: <20220920092643.GB31833@telsasoft.com> <21fc23b4-c47! f-959f-9123-a0f25f0f458d@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Mon, 21 Nov 2022 20:05:04 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3259163.1669058495.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 21 Nov 2022 14:21:35 -0500 Message-ID: <3259164.1669058495@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: >> To date testing database cluster wraparund was not easy as initdb has a= lways >> inited it with default xid/mxid/mxoff. The option to specify any valid >> xid/mxid/mxoff at cluster startup will make these things easier. > Doesn't pg_resetwal already provide that functionality, or at least some= = > of it? pg_resetwal does seem like a better, more useful home for this; it'd allow you to adjust these numbers after initial creation which might be useful. I'm not sure how flexible it is right now in terms of where you can set the new values, but that can always be improved. regards, tom lane