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.94.2) (envelope-from ) id 1t3BQV-00B4B4-Ub for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Oct 2024 09:43:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t3BQU-00FxCI-1U for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Oct 2024 09:43:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t3BQT-00FxCA-KX for pgsql-hackers@lists.postgresql.org; Tue, 22 Oct 2024 09:43:42 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t3BQR-002MxX-Df for pgsql-hackers@lists.postgresql.org; Tue, 22 Oct 2024 09:43:41 +0000 Received: from [192.168.86.172] (mobile-access-567345-8.dhcp.inet.fi [86.115.69.8]) (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 4XXnLJ2csrz49Pwm; Tue, 22 Oct 2024 12:43:36 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1729590217; 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=ZqdaD0R5lEbVtCi2AhltwRjfk4OU59wMZEirjPB/i1o=; b=OURfpQxJCX717mENBJA1M6ifDORxAAEtb+cfqy4+9u/TDijFYdPq7kKapFb//Nu5TB9KEi /Tx7BrBIYtiW0hCX5ctpY3z8m1TI/Gol5rfDW0p0IH7092ILx+nBDSt7vTspWclrYlXkx+ AuOs2a4Pypir7txdliPt1H7t6EHmWQckHmH5PVL7EBlVLtwAo0KdBys1VPOXuYsE8HCJXh IEOD+YU4tmWCYcNdLR5rWXdLjGbzG2Y2u/xPhnxiO7LdEto8WcHNWVxSkufU8k8zM3e85/ 44gZVf2++LdvB8TeGbM3IX04i6w6yYUrzy7A1piEIBhvSpxshzflDjaFDDdupg== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1729590217; a=rsa-sha256; cv=none; b=klV3ocZ6FGHtuiOqMgGZ4Dlkqm55AcwAMP25ldyQFo6+8kE9mUObLJo0HGrEONXKEhQMQi lMY9yH455ACyf8/3+0IH1GLiPyqnBm5WBFk6ujdn66MX7yhT5PfnuiE6DJE3uVH9mKX32N Sen/VqXjJjm0ny8xJ0tmN3GnzxA3QEZXWLImbx0oDk+QPPCXvJYmBetO+3cbqqIeK6Q+1d 3Qz2tcHYflgqJRekHT3IZq2Y/T5N5Qe3PJ6DTZA/+DDo7ci2RzkXKN6mS0b25m0d3qaN5m TULi3i+s18RM7J0MapgM21NbktE3wYLvLgRFOeN3jukedpMiaF4WQxMXsEb5iQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1729590217; 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=ZqdaD0R5lEbVtCi2AhltwRjfk4OU59wMZEirjPB/i1o=; b=apTu2K8Ztg3a8xD5iOMCPuFfP/eP2ngG51QD7wXO6uW/tp4SE3akIZVaPwpoPK9/Mc9MNh 4Z9wDQZuFjkSSmxT9Mk1ICqtycQdLSIExxRG7n8i1ragT1Tx9xTrUQghAr0Mz1czyFkzvi ktWa77jPXqE/FZGNtkHHHOHgJfMK1Q3EujLnRGRNHdMQE2aT4Ms/5JtWepnvcNzBh8gvAU xg5F/G7zKqJLjdZzFDapr84y5JDu7welp5dzjfQUvApAxfIiTJ/dCYbfs4c+h3wKhAXk1K 27vqNWSRGzvJ58icLrcTi34T2HuvJpCHc3l6psW6StR1VdrZi2LtUWE4jIJrXQ== Message-ID: <5ecc35f5-1111-47fc-8a02-36d89490a50d@iki.fi> Date: Tue, 22 Oct 2024 12:43:34 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: POC: make mxidoff 64 bits To: Maxim Orlov , Alexander Korotkov Cc: wenhui qiu , Postgres hackers References: 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 On 07/09/2024 07:36, Maxim Orlov wrote: > Here is v3. MultiXactMemberFreezeThreshold looks quite bogus now. Now that MaxMultiXactOffset==2^64-1, you cannot get anywhere near the MULTIXACT_MEMBER_SAFE_THRESHOLD and MULTIXACT_MEMBER_DANGER_THRESHOLD values anymore. Can we just get rid of MultiXactMemberFreezeThreshold? I guess it would still be useful to trigger autovacuum if multixacts members grows large though, to release the disk space, even if you can't run out of members as such anymore. What should the logic for that look like? I'd love to see some tests for the pg_upgrade code. Something like a little perl script to generate test clusters with different wraparound scenarios etc. using the old version, and a TAP test to run pg_upgrade on them and verify that queries on the upgraded cluster works correctly. We don't have tests like that in the repository today, and I don't know if we'd want to commit these permanently either, but it would be highly useful now as a one-off thing, to show that the code works. On upgrade, are there really no changes required to pg_multixact/members? I imagined that the segment files would need to be renamed around wraparound, so that if you previously had files like this: pg_multixact/members/FFFE pg_multixact/members/FFFF pg_multixact/members/0000 pg_multixact/members/0001 after upgrade you would need to have: pg_multixact/members/00000000FFFE pg_multixact/members/00000000FFFF pg_multixact/members/000000010000 pg_multixact/members/000000010001 Thanks for working on this! -- Heikki Linnakangas Neon (https://neon.tech)