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 1wdAwu-003wH9-1e for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jun 2026 18:06:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wdAwt-00C03L-18 for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jun 2026 18:06:43 +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 1wdAwt-00C03D-0E for pgsql-hackers@lists.postgresql.org; Fri, 26 Jun 2026 18:06:43 +0000 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wdAwr-00000000OFH-02Fc for pgsql-hackers@postgresql.org; Fri, 26 Jun 2026 18:06:42 +0000 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-7e6d37b7098so1399761a34.0 for ; Fri, 26 Jun 2026 11:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782497199; x=1783101999; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MTpZUHTGAjVMBCLl6K18gh1zQ+bUOcyoaiyh5rr5zLg=; b=WOHy5qk6YCRT6Uohry3taTKIvyoiBJ2pZNOe1mEkszNiAafcu6xvXfEdt29Mc3KcYQ lVmVs3tTbwd5LKkWyq0Lf+eDWfrK+l9I5u6taydnyZa6FhWMKCxc0yF3ZpJpWS5P5X46 d87gVy+eW78CbWSqkt0BFJppQp10K2LZjo3hUSVgjHlA8JP07MtOz49bKMaKMvOMr2io s+Dr+JkU8B+eJGSjLR6CqcKi96sBGt4oYyWxNCB149CR1tNpQi2SyhEUobQcrdzbzALG zb6jaLWTPUV4EyZm7+ClTiYdMV1A3s1sh7HJfCOETFgdoOe90dPtCn8hqcDekw15JIyC xDcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782497199; x=1783101999; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MTpZUHTGAjVMBCLl6K18gh1zQ+bUOcyoaiyh5rr5zLg=; b=s+YErMog8t1+06iPPTo7E9hdzuSC5mEuUuxY2FIRnc7jY16tbsgOCwOPPDcSwGS4xy NiGe5KLrAld6ANvfMJcftLjVxvcB5jlJkAF7ACKVbsPw7wL0Pkij9W3rLWpo51Y6Hkkq NpB7zfmCz5Ewjt6otVgk7JUUfV0R/IkLuHX1qtvC/WhRqu3u5e1yXh364Hylj0CRGEq3 0S5JSoyOnOjVCsNGOaWO7aCTdDEdgGnL2/FLbyps5ixr5pVRLm0O6Sow8vjPgspfLZ+z axf2bOKX8CMvR9foGz9/KOLPkAKr4qaGnZ8LH1tNRAYtGhUrrRCPW5PiE9pROxE7E6pM +5TQ== X-Forwarded-Encrypted: i=1; AFNElJ+OV1aw/VXuzPxiZ6nu24+NNToDoH1wVq8a1fVvYQUt0PLp+cvR1ynq9bk/L2XR0pDZTn8rL6m3qqp+IhdW@postgresql.org X-Gm-Message-State: AOJu0YxrouIxFr4To/UcDsQns1VJ1qNkZCtCJ2r6u+qWB+WfPfp4+qyS JOIAC95E3lWtsTsU9XiNDif99tYepQmz8WX+xC7Dj7vMIKWaGRNnU5c2 X-Gm-Gg: AfdE7cmzUT3peVXhMnzARjz8PVh4JhbN5LrlrIvS0Qh3qM4YIWJqOfoNn+kJ3Fsw6SW TeCNsYyyn7Kjp1IBl5QDd9v0qf6V78KayVxb0NYGuWmu9nNOnQDewUiZYylXsfUPC3LSBO3Gg/2 Xl/Sg3l8ySXhXjCsjp/rc/ugYOUhDfCu5GgEH4IMUKsXU3neiYF8kxzdAOXQ7pphMUInrvbF7r6 nRJD2t1feyowe2Gfm6MTYBLYrD02aKAfIV3za2GaCQOnNh/iqyjGZ5SrZoaRwLD0dK00pkh50a7 PfslzlFBaGr1wWdSNduXOGi5VL3a1xG6s/5PvOPCtm8awVmiRjY/ENHS+1C6BvMjnuidRfdcHRE B8GshswileWz3Z0YXX2oUTtBBm4TLX2EVbhm1f8BBPUPIOx6Umky+qcV1UdipruCEj5ECXaKsBF r+CSjjNWsJDBYHvsqZ00H9skK3aXa/PlrFereHtVyZq71hnfLoS7ybzZ6vSQ3XKHvrTSPYKXzbU zvYnbP145Y= X-Received: by 2002:a05:6830:6a99:b0:7e6:da40:b7fa with SMTP id 46e09a7af769-7e99c431e65mr7858969a34.24.1782497198855; Fri, 26 Jun 2026 11:06:38 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7e9aa800350sm2283757a34.25.2026.06.26.11.06.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2026 11:06:38 -0700 (PDT) Date: Fri, 26 Jun 2026 13:06:36 -0500 From: Nathan Bossart To: Kyotaro Horiguchi Cc: masao.fujii@gmail.com, bharath.rupireddyforpostgres@gmail.com, qiuwenhuifx@gmail.com, shinya11.kato@gmail.com, pgsql-hackers@postgresql.org Subject: Re: enhance wraparound warnings Message-ID: References: <20260626.105539.2164712575561010742.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260626.105539.2164712575561010742.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jun 26, 2026 at 10:55:39AM +0900, Kyotaro Horiguchi wrote: > I'm not sure I'm following this correctly, but the explanation above > sounded to me as if the warning should report the number of IDs > remaining before wraparound, e.g. "Approximately N MultiXactIds remain > before wraparound", so I'm a bit confused by the proposed wording. We already report the number of IDs remaining in the WARNING message. In v19, I've added a DETAIL message that also reports the percentage remaining, with the hope that it makes the urgency clearer. >> + errdetail("Approximately %.2f%% of MultiXactIds remain before wraparound.", > > The attached patch adopts that wording. However, I'm not sure how to > interpret it. The value is still expressed as a percentage, but it is > no longer clear what that percentage is relative to. > > Whichever approach we choose, I think the wording should be explicit. > If the value is reported as a percentage, then something like "x.xx% > of MultiXactId space remains" seems clearer to me. If it is reported > as a count, then "N MultiXactIds remain" would make more sense. I find both "percentage of IDs remaining" and "percentage of ID space remaining" equally clear and have no strong opinion on the matter. -- nathan