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 1vST35-00FHsr-00 for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 04:40:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vST33-00En15-1e for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 04:40:33 +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 1vST33-00En0w-0k for pgsql-hackers@lists.postgresql.org; Mon, 08 Dec 2025 04:40:33 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vST31-003h9d-0H for pgsql-hackers@postgresql.org; Mon, 08 Dec 2025 04:40:32 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-477ba2c1ca2so52859405e9.2 for ; Sun, 07 Dec 2025 20:40:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765168829; x=1765773629; darn=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=9m+QEKVyO/i471GthbGjeyzEaYgCbN2c8//9TIb1wtA=; b=EgZEYNJiZUI2DzM40TN9aLIpdcZ4mkaULX+lid2cLax+nb4lem2eAL58YRjI1c4VE1 htKaFVtQU3jCBnGEqBQDMZJcBhQ8m7/3igtBs7qHT1O4Nxr1bsJpEXPZOilXzapiMrzD RL/uu9UTFIs5TAFNbeDbfcFqtlA8bBpBCvSF2BThEDxbO1DYM14J45BveLAmSpsen59N LjzdC60Ts+sBqpq5fdnZBz818v7E62DUc51pKWHSRooCT4mlSHUOCnmExwu0cani/5Mx 85o/V607gw84f+AmazacDlZnIhK50a5CTfBOL61wh5eaIsrlSiTV3cVOvyq7spAtCugV sScA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765168829; x=1765773629; 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=9m+QEKVyO/i471GthbGjeyzEaYgCbN2c8//9TIb1wtA=; b=OZqSmEMLoBYaRFtfdNc2ozi5TitQLBN4XrGLIv3ajUOvq95BKi+yjDN6aRas+v2QLX H0Sw0RQgC2fbE2jxF/9E1OU4z1Eqz7+lX5X+gUR5smGm8rIFNb73XytEa7whR+Ze2cfa oT/Vecuo5jHp+fNCHu1pX398JQC88qniqeWzslVjMPvQXxic0hrGyPWB20e1oq+gw+Sr Y8NlTfwbms2I2yQkc1sTTSeD2JWiCPsMdLXhz7R9NyBAJxcLQK3rjZiPiDywqM9HS/Ey xK7R3lHryRqhcc8y5f1T86cZFmiHtD44zZhkwCFNz9NWri1MG2rHoQ6C9eYSwHcwSpT2 FaOw== X-Forwarded-Encrypted: i=1; AJvYcCWNAO+YZf+ydO3mi9W6aOxykGq1UEcyhfRxeoFAtv4bg6r1zIQ/KsLm9K1p3tKl+v1j/roJvV+q4wxBmVkN@postgresql.org X-Gm-Message-State: AOJu0YwZ/1qLCS56+MBNMSfbqOLRuPglQEDb9Z35AZuw5EP4Thj54gPr aOv2A5IRzalSFJvxsaIvUOa5GiGRv5La1RCpVa0XKxZ7dCr1yrqi9aEuikKNaZ2AH1cyn0PofMI isBwwmkf+sSXJz5qy7FXBZ581xhasZSY= X-Gm-Gg: ASbGncvlYOCeEZrJRzAJ0TlvYPN+uuwiaeBL3GYianYUiQsE/WXgtFkhhEkUGQlkN5k upSe59CV1Vv3/zz+A/kvY09+UlJOSC3p5dp/6daLxRME++p4I7BuEHKrByKvz+ANHpW6EAF6bnV 4yzHHnL/tJcgVgnNvg0E6RqOUW3zEC4r8dJHTHvWKfL8USuw42Ks48G60GXFlO/jD0aOyZjyDMA ho0SesHTB9Bddn3cNG4HoUCrrp3fzkjnGwTBuT3Yx0zxaRCioCs6m6rhHej+CiTQYkaBQ== X-Google-Smtp-Source: AGHT+IEbuvhD46xLDmA9psxt5xPFMqXraXMrwGupEXLplvt0LqlwTWAJuHYr3zVUHuhNmOf0Y9vnW6qst91dJCJQi7w= X-Received: by 2002:a05:600c:154c:b0:477:7991:5d1e with SMTP id 5b1f17b1804b1-47939e386dfmr66955945e9.25.1765168828514; Sun, 07 Dec 2025 20:40:28 -0800 (PST) MIME-Version: 1.0 References: <29f9e7abc90c3a4fe4a44026141c0d6c@oss.nttdata.com> <95850ce1-2d5e-4271-92ea-c2a02e36b303@vondra.me> In-Reply-To: From: Ashutosh Bapat Date: Mon, 8 Dec 2025 10:10:16 +0530 X-Gm-Features: AQt7F2ovJjU5Jl3sG_TpScH56NdFpBTm_eidtG5XjC1oKXS81itxufkw_wUFPoA Message-ID: Subject: Re: [Proposal] Expose internal MultiXact member count function for efficient monitoring To: Naga Appani Cc: Tomas Vondra , Xuneng Zhou , torikoshia , Michael Paquier , Kirill Reshke , pgsql-hackers@postgresql.org 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 On Sat, Dec 6, 2025 at 11:23=E2=80=AFPM Naga Appani wro= te: > > Hi Ashutosh, > > Thanks for the review! > > I agree - comparing the exposed members_size against the documented > thresholds is sufficient for monitoring purposes. > > This aligns with the approach taken in v11: exposing the current usage in > a way consistent with other PostgreSQL counters (e.g., XIDs, OIDs), witho= ut > introducing user-visible remaining-capacity calculations whose behavior i= s > inconsistent and difficult to interpret externally. In the same spirit, I > removed oldest_offset: as we discussed, it is internal and does not > provide an actionable signal to users. > > If this addresses the concerns raised so far, I would appreciate > consideration in moving v11 forward for commit. The patch at [1] changes the function used to fetch mxid related information. With that we will get rid of awkwardness around non-availability of the statistics. It's better to wait for those changes to get committed before moving this forward. --=20 Best Wishes, Ashutosh Bapat