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 1wzeLB-004913-02 for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Aug 2026 17:56:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wzeL9-003lWn-3D for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Aug 2026 17:56:40 +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 1wzeL9-003lWf-21 for pgsql-hackers@lists.postgresql.org; Thu, 27 Aug 2026 17:56:39 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wzeL7-00000002iqZ-1aeA for pgsql-hackers@postgresql.org; Thu, 27 Aug 2026 17:56:38 +0000 Received: from [10.0.2.15] (unknown [75.125.238.37]) (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 4hW8Mx6zzBz49Q1j; Thu, 27 Aug 2026 20:56:29 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1787853390; 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=gYBAHfJIDIGPZs2Xas0GI7LOpq87fA+loCQw0GsbutA=; b=LqcpAEOTxl3DbVJuSc/E4222Egjl00CVdu1fN8C3rjG8MhraN00tuUMIwIgv3BQiXZVOYP yD+sdUeWiQ1+AZnP5oZkEvnyV2LFqxr5toCEehrOGYF1CqTuzHEEbD16Aq3Wx18r1fuMqT MDwrpycNBDFvqMTY2sQoqrgigkdP+A3o9W7lR6KyK2gVTyFsJu2IfetIfI/UYjCRse/e8w qVCtd3sr0lzmcfaq7QG0UTuspn3Z3X/uJ/P6fAbsN5MhLob1b/2GRPiupqr06xr/+7Xf4n YHdBskBiijHuzeGo9nsKquVCVPlLdeGodpTz0533pYXF4ESLfF1PJOGf0P+C9w== ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=lahtoruutu; cv=none; t=1787853390; b=h7yL/VGpppaJzT8DfIzWVzu4If80VVlEbtROGfoPUyqXX0n0JO3nMiGCFBUhK4pUm3ZUWk SIlbJ8dbwElBD/cdEEILKnuwKD5JjGvlO6hV72MD5EiZUfDejq1AN+fMfiAzVMURBiycLL ZPEBitO2kfj9bbAkkRyPWIkVCB6YHdl69WVan6MITV8eqMF1LabL1Adr0n8vB9EtdV/qjg ZWz4U/3eWxB9M/LoaQNz49+xPGumTjA7Ac2r8p6gyBWChZ0GBXTcBg10iPtRcXudGAt4Wf Oe6NvQR5qRHS5PLuKJ6fng7u59885r3So1LZWNtVaJnljgXfCEUMgnOOI9Zqog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1787853390; 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=gYBAHfJIDIGPZs2Xas0GI7LOpq87fA+loCQw0GsbutA=; b=JQURR2bX9ZJL8EoxLDxeT7CqxOA/fExM4tlGNeS+ATp+nnhyQdEolltPTL1s4Zg0QtUjEp bUfFIq7asDVai41odX2QiCRR4HYFRJ3oNw05vAK+4y/yukGv4pU18jd+o4TgenY4e3BEWP iht7H7V7i4Ja+Sfa2gw3RLsOaXjE95+KswmGgaEC/oQ8Rrba6pQ/WPCFzA9ba8VnyvZ+Sy Rb17JOv+bdJxDGJHvXE4o9DSIgM9HgBdb3HvJoL8F2ZReMLd6Z4/stHSgrhAjkHO/0LRvp LxPkgmtmjLpgRnqWXU4toUPLQ4tLNzyKsljCCr2NqisoXFHFm/IlFHzOUJ6P8g== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi Message-ID: <35dd1ac3-3cef-4d8f-ade1-b588f7fa89a0@iki.fi> Date: Thu, 27 Aug 2026 20:56:29 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pg_upgrade silently truncates nextMultiOffset to 32 bits To: Masahiko Sawada Cc: Chao Li , PostgreSQL-development References: Content-Language: en-US From: Heikki Linnakangas In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 27/08/2026 20:25, Masahiko Sawada wrote: > On Thu, Aug 27, 2026 at 1:58 AM Heikki Linnakangas wrote: >> >> On 27/08/2026 11:20, Heikki Linnakangas wrote: >>> On 27/08/2026 10:35, Masahiko Sawada wrote: >>>> I considered using xid8 instead but it has only comparison operators >>>> and no arithmetic, so we couldn't compute a delta between two >>>> checkpoints. >>> >>> Hmm, that's a good point, although 'xid' didn't have those operators or >>> arithmetic either. >> >> That was inaccurate: both 'xid' and 'xid8' do have comparison operators. >> But they don't have a "minus" or "diff" operator, so you indeed cannot >> easily do "b - a". >> >> I don't have a strong opinion, I'm happy with either bigint or xid8 >> here. Bigint is probably more convenient in practice, and it's good to >> not confuse mxact offsets with transaction ids by abusing the xid8 type. >> Then again, it was 'xid' before, which had the same issues and we went >> with 'xid' anyway. Then again, now that it doesn't wrap around anymore, >> maybe 'bigint' makes more sense now. > > I missed the point that we used to use 'xid' for that field. But I > agree that 'bigint' makes more sense. > >> Would you like to decide and commit this, or would you prefer me to do it? > > I'm going to take them and go with the 'bigint' column if you're okay. > > I've added the commit messages to the patches. Ok, thank you! - Heikki