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 1vQR6g-007TFC-1m for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Dec 2025 14:11:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vQR6e-0087nX-2y for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Dec 2025 14:11:53 +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.96) (envelope-from ) id 1vQR6e-0087nP-20 for pgsql-hackers@lists.postgresql.org; Tue, 02 Dec 2025 14:11:52 +0000 Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vQR6c-002kGx-1C for pgsql-hackers@lists.postgresql.org; Tue, 02 Dec 2025 14:11:52 +0000 Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-657230e45e8so2315391eaf.1 for ; Tue, 02 Dec 2025 06:11:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764684708; x=1765289508; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CPyRjz+vSycfNNKDs/nDEH1244hgX8K/hWTZjeqv1lg=; b=Cg+zj/wIkuTCRzqaI+dBbqBNDqCdrcUmH4CMi1/gnB5tOZHFLmFSc/P+7r7vO6LRwv vSOA5qwQfuYaYB5mtxSa1/sZbuzgylEqXVoRQxXNscaOylvx6EOsBE16AJUN4+UPMcY3 6NKckDKQNB828bBp2shhDaTzM15pOtJfgdMt+jpfZkVgV2RJBdHdRhP3sucKu63eGPuf x8xN9iTBfMsUl/M7vROBrLZMzay5y5+Jk8jSz5GMWtcQ4Da2LzhC+2sMFtiqdEYg17Kz WXUonfqZMcrXl3lOsFs0y/UegAi4M66da8JqUPBUHOdwtA6awG8j6zdJNE1tXMALbtpB Q6Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764684708; x=1765289508; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CPyRjz+vSycfNNKDs/nDEH1244hgX8K/hWTZjeqv1lg=; b=jjn0o8P6/kDN0kea2J2MoHI1Qx4Kb2fU6/Y7JCjiaD2kBhjpXb8knSWvuOUWSZQlMR S/5uEJoHBo/AOoL0KVXedaibd/gP5FUiLHAs59lSnpwQHSdicNWv0iG+PLL5/hUQvu28 vrApz47e2+tnAqVJtjQtRUPpoiFMpD+GsL95zQID7dzMZiPkY5xK2icH3uQGDBFZiWD3 T3gMFZ/+TJUYnro2/NkTKbDlbsxANSKaw9r5Swy5TTlFYVe8OrpcemGWn/UC9Xq7coDt cfXsMlemm1X0W6myAXOOeIzbgI6gYZjQdvfkaao0mXC7Raakj/uiMXqkIR6dYxWmAU/u KlCw== X-Forwarded-Encrypted: i=1; AJvYcCVpFjrNWWwviBP2RbVVy/WyFIvAJFSAPl9LvMBm1r6qPYBN15cCrxCMQyGYUlE6L63KwsYTq5QgnVXpHqCS@lists.postgresql.org X-Gm-Message-State: AOJu0YyovsS9h4tT8/PM9t+lYdywyiDK2FJKl2F43E/KFUPG5x/K65mC 5oWlrdXCZ7MJkmLQ7dtigg+Pog7KFBMFT66TwxqsyNmMmXlCKvFK/oeHjWTjRn8ovNqJFDwOI27 ssI6D0Brsf31cBYB0B5zPQ224rd5tPXs= X-Gm-Gg: ASbGncuwPoEl/nHkvADeCvVDe70fPc9Zmf4gdi/ZfbZASw8sjz79H7eUUWx+NIlVUw/ 5MMZJIvT/GVya25vrtA3IpZiXHNLRZ19eWP/ObBYEVLpOZ117k0sjdLs+jYYGkcBrBSI1lH/ZNC pGteQmWLvMIHzQHSvcNM8/yxwO4M4O/0u2otreUHcKQrJkTzKkMLKEqm7xRHJWbMuo5fcAU7FZ4 L2w7A0gX/xLX2B0fr/YCNEBIVNNIqAQ7bxSqXXoPf1NBKaefuCBg97aEV1c+MMGaFM20esUl4pw m2DIY+PvCSK5ghItzT1jn11JP1G7oZAYRVogWbwVWYE86blfUcaQhZNr966KT2P5mGRNWg== X-Google-Smtp-Source: AGHT+IGhvGJiDume7P7V8kiHQFypegqspmy2lnOV+39SuZDCXHl5la8eR2obOm6mPubgBbOra/8peMlxP4JneKX9GnY= X-Received: by 2002:a05:6808:e84:b0:450:c7dc:d7f6 with SMTP id 5614622812f47-4535d3f1fc5mr1454640b6e.25.1764684707675; Tue, 02 Dec 2025 06:11:47 -0800 (PST) MIME-Version: 1.0 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> <9ee6324a-44fc-42fb-bf8e-7c3b53395588@iki.fi> In-Reply-To: <9ee6324a-44fc-42fb-bf8e-7c3b53395588@iki.fi> From: Alexander Korotkov Date: Tue, 2 Dec 2025 16:11:34 +0200 X-Gm-Features: AWmQ_blROCUcSnGqfM6xLavPsfJal8Kly-rCvTPXdILHquKJmr1BOY02S6oF5Ig Message-ID: Subject: Re: POC: make mxidoff 64 bits To: Heikki Linnakangas Cc: Maxim Orlov , Alvaro Herrera , wenhui qiu , Postgres hackers , Ashutosh Bapat Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, Heikki! On Tue, Nov 25, 2025 at 12:07=E2=80=AFPM Heikki Linnakangas wrote: > 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. Thank you for your work on this subject. It's very much appreciated. I'd like to raise the question about compression again. You have fairly criticized non-deterministic compression, but what do you think about deterministic one that I've proposed [1]. I understand that multixact offsets are subject of growth and their limit is not removed. However, it's still several extra gigabytes for multixact offsets, which we could save. Links. 1. https://www.postgresql.org/message-id/CAPpHfduDFLXATvBkUiOjyvZUBZXhK_pj5= zjVpxvrJzkRVq%2B8Lw%40mail.gmail.com ------ Regards, Alexander Korotkov Supabase