Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vLkw7-009FHb-2o for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Nov 2025 16:21:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vLkv7-00DsWy-1W for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Nov 2025 16:20:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vLkv7-00DsWp-0a for pgsql-hackers@lists.postgresql.org; Wed, 19 Nov 2025 16:20:37 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vLkv4-000Mi8-2u for pgsql-hackers@lists.postgresql.org; Wed, 19 Nov 2025 16:20:36 +0000 Received: from [10.0.2.15] (unknown [130.41.208.2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4dBRXr2mKxz49Q3q; Wed, 19 Nov 2025 18:20:28 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1763569229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JvgRQ9KjdwGFskhns5oKImDaTEx2PefhEKmBvg/Y2Ho=; b=coJDhox88EhkVFJTspRe2rWOPzSCeqyFYx0x1OTPTKmLR03thLX3l6weputuCILyHC45HQ fxkL4fY4vdOdSBWIqJtdA+MLC1hWXbBy+W+I25VS3yrmeKtlPeWz+oIoiu6wfHKxyVQzgt 4rZTD+ZFvHcTV6sv509AQPTPVADV256ISMjxyWwwPOxfOBkynV0F7iAUuGEfUb4W1v0FIl LEfQSHzjr/1x5/6iE+0FUCVTdmO/4nb1lO4mv5/RG4vrhxSg0tOsktRCQa+W9ZaBc7J7lN d3jXdBF+qcLziVRUPk9ruYxzLLGgnI3w6lsBSCCewSOG4osCkaebJ7Ab9z0DFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1763569229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JvgRQ9KjdwGFskhns5oKImDaTEx2PefhEKmBvg/Y2Ho=; b=rMPzC/dty/Dhy/HiV22C0900BiMCA5OzHgL/CuFlueQXpAVZrFnayImf8UF4Xe26M1KhO+ P6yUE1BKSjmkIepkie6w7au4Yc9eLD35KLdfRjO3lQ9JacL/zry/APHkZZn+yW8HQuAd+W jp0HSMHem1focTVsaSAcckqW/rg1LoVY7dxkgyXEG/8FySua+ThCLq8Y49Duizs4xAyuvN tDdy8qT8Nfc6AhQLYBOtOWZOgqnNFYwC5pk69AdIBep7dpEUXpfiJMz0nouXO7Sbk+JDjc 3LWIV+Dr1Wwl8/+oergSQEzRUbyglQiTqovu6nFJXg7rrulUY9C0ItXAhgvw3A== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=lahtoruutu; cv=none; t=1763569229; b=ps16tUZMsP3tDabSOJp0SJJbPzvmmg2vEq2FKyGnofn8C9winfsqIOFi1w7XECButTkr8+ FEyZiXEFCmOtg75+L5g2eMkvdtqTlXPgtGbEFQXmqGNZ92e56ilx0T+EBW8MBgwNMEjp5/ HlLDbamCufL6XPqvyvppy1HTkH1JFRjSQlATePFXq7s0vVJcEwS5BN5s/ZqqNdjMBnfk8b VTm5WTsG1ZcAy4jEU3wChGuxmHQ5YGSgAUAB9NNuL2dhyVOKHR+nCRfrFu20k/PFVzm78C u+DJ/PNXqI3Jkhewiu4jSNzU5g1iT4lEY+KlJgfhN0ICFojazLf/CNbEfULRsA== Message-ID: Date: Wed, 19 Nov 2025 18:20:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: POC: make mxidoff 64 bits To: wenhui qiu , Maxim Orlov Cc: Ashutosh Bapat , Alvaro Herrera , Alexander Korotkov , Postgres hackers References: <4535f3aa-3220-4760-b1f5-2bc91f248e03@iki.fi> <2bc58592-9d74-4af0-bdd1-1a88e8683f7c@iki.fi> <36531c0e-292c-409d-bbc7-a252cf6e910a@iki.fi> <54aa8f65-f0e4-4464-b543-e0399c1cab1e@iki.fi> <4a9dda70-0af7-41a4-9636-b168f2fc48ef@iki.fi> <46cc45e9-fddd-44bc-bcb3-96889aafd921@iki.fi> Content-Language: en-US From: Heikki Linnakangas In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk One more small issue: The docs for pg_resetwal contain recipes for how to determine safe values to use: > -m mxid,mxid > --multixact-ids=mxid,mxid > Manually set the next and oldest multitransaction ID. > > A safe value for the next multitransaction ID (first part) can be > determined by looking for the numerically largest file name in the > directory pg_multixact/offsets under the data directory, adding one, > and then multiplying by 65536 (0x10000). Conversely, a safe value > for the oldest multitransaction ID (second part of -m) can be > determined by looking for the numerically smallest file name in the > same directory and multiplying by 65536. The file names are in > hexadecimal, so the easiest way to do this is to specify the option > value in hexadecimal and append four zeroes. > > -O mxoff > --multixact-offset=mxoff > > Manually set the next multitransaction offset. > > A safe value can be determined by looking for the numerically > largest file name in the directory pg_multixact/members under the > data directory, adding one, and then multiplying by 52352 (0xCC80). > The file names are in hexadecimal. There is no simple recipe such as > the ones for other options of appending zeroes. I think those recipes need to be adjusted for 64-bit offsets. - Heikki