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 1vNpzr-00GYRW-2h for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Nov 2025 10:10:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vNpzq-007l4L-0k for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Nov 2025 10:10:06 +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 1vNpxT-007i1p-1f for pgsql-hackers@lists.postgresql.org; Tue, 25 Nov 2025 10:07:39 +0000 Received: from lahtoruutu.iki.fi ([2a0b:5c81:1c1::37]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vNpxQ-001Mh1-29 for pgsql-hackers@lists.postgresql.org; Tue, 25 Nov 2025 10:07:38 +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 4dFyzj1mf8z49Q1Z; Tue, 25 Nov 2025 12:07:29 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1764065249; 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=MiwKbsWiloWOgtk29FbI6olIiwv8qWAHgRUT4aeAySk=; b=makQEIEk7pIlWd4JGS+Qjz5V1PFVXXyTZLWi6Un+7w2vc+tSqS/m3E+b1y/YN/1q+9M8uD LJkIW4kLfa6KBRml6SCBVsjjmQL04EDmVOpj0/a/EdPd9S37aCOwMKHo7F9HaRBdcuoPJh MZJKcVkDZLSnUEh9Qy4b1bQZD2EIu0grPzkfFyjcL8+ZXXHe+1Yi0wPGHcfuvjmsquQ3xc x4g59l7onSevTWbeSwDNPq0/Kf13738I81Vq8jD3ctMI6o1onuhMXB7heu3rY2iWwAHgb6 Sii4mrisYnZCD1WeEbDrzk/OFnpqj4CYH7Jxj9J2UqvTv6/Y/AKOaXC5R12B1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1764065249; 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=MiwKbsWiloWOgtk29FbI6olIiwv8qWAHgRUT4aeAySk=; b=FadKSptAzA7ueadqUeWHcmTCL5P6WGBoTOGtwu2HrQVlygj64axJl4Dyx6SI1rxHB6UbnI qk7wA6eLihXAZFqHcwFNc0zHUTM6LQHJ8pvjwDfFUqfI2T5LityoCEAECPdn5VZg1UitAC jEfw8HLsU/QN/tx9xCjMwD+s9sH+VprNeAvisqLLIR4b6LrWbVQw9vRIxwQk8WQa1gnao9 cm+wcp+GjlMfoa17yyhgBsJTHf55GwkYMqZI6lZfmrs4ZXkMW8mnR75qd2ygNCUYwsJWFH icknBkQmQco4ojJDjW7+Y4jDA1nE/ZfsVI3GRfsbh0b9EBAdu3PKUoF0rUn/HQ== 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=1764065249; b=F8z23cTQ4yPzhUgyA4WswiXqATcDMQrD/Oda0eXupdPNkB1UIKJFd1ygcVzmJ+HTAEmqm0 DdQ0ZasPIq9Z8eRrH1zKDM3lohDuLKvFT2FzEoDH8TTDN7VSbhL2Y8A5uTce9VXTZOaIyN ZRD2jlk1Ahusndf83fOhmDsBE+PK6xpkbLclpmKLwkSAu8b+OWsMhVwIhWAyIWAsLIqsiq r8nepWoRZG1vTYfh1RFC2n91LTVzKetBFGNYN5Kec30MpoZ8THgzuyITBtdMQ9kHd/ikWi pAiew2XI8z/AVusDtmbhMqyLXm9Lme2drDhbq3GwLr+IhnPwXhfL2u/YjyRCJw== Message-ID: <9ee6324a-44fc-42fb-bf8e-7c3b53395588@iki.fi> Date: Tue, 25 Nov 2025 12:07:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: POC: make mxidoff 64 bits From: Heikki Linnakangas To: Maxim Orlov Cc: Alvaro Herrera , Alexander Korotkov , wenhui qiu , Postgres hackers , Ashutosh Bapat 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> <6c298bc4-7029-4c1d-bf16-3e094842ce32@iki.fi> Content-Language: en-US In-Reply-To: <6c298bc4-7029-4c1d-bf16-3e094842ce32@iki.fi> 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 Looking at the upgrade code, in light of the "IPC/MultixactCreation on the Standby server" thread [1], I think we need to make it more tolerant. It's possible that there are 0 offsets in pg_multixact/offsets. That might or might not be a problem: it's OK as long as those multixids don't appear in any heap table, or you might actually have lost those multixids, which is bad but the damage has already been done and upgrade should not get stuck on it. GetOldMultiXactIdSingleMember() currently asserts that the offset is never zero, but it should try to do something sensible in that case instead of just failing. [1] https://www.postgresql.org/message-id/172e5723-d65f-4eec-b512-14beacb326ce%40yandex.ru - Heikki