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 1wdEtl-003ykh-0F for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jun 2026 22:19:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wdEsj-00DFPR-06 for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jun 2026 22:18:41 +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 1wdEsi-00DFPG-25 for pgsql-hackers@lists.postgresql.org; Fri, 26 Jun 2026 22:18:40 +0000 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wdEsg-00000000ObX-3PNX for pgsql-hackers@postgresql.org; Fri, 26 Jun 2026 22:18:39 +0000 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-492046a3313so1235928b6e.2 for ; Fri, 26 Jun 2026 15:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782512317; cv=none; d=google.com; s=arc-20260327; b=MQpj7azYYmI/Q95uL3QHaRkvBxk/A2zBqUeAQWQeK3hPsAji0h3Hx7brzTGBXEBDe8 Ob+UqFyLorPmjAzE7ScXU2IrOpOzTnxiKh1XYEREuIrkWeIcztQf2EGlnn0FmeHW9LfU p/AL2ilzNUSxPeahFNxrGc+J7eEhCCtnANMTrfIovBU+C2jdIOS47w0J0cRkpCDUz/Jo hZk6fKytY9Um7rpsWbQFdAqyEnmB1JTcXO5oEI8CdwLzu+mnWpwucxnwVWxbjVmhXDIT yPlMjN2QgaxchAC81QSotbL0wX+lgsdEc9HO9Ze1MFt9RGFqn9Bu3GXerLG6NXGKc801 zQvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=MAnvsV/Jfq9mXQw2FQlYUPvK8FGEJjbFugt7HNl51b4=; fh=oNLRnuMdyL96WDSyXvqiLYv/KKr2ZEceN6wFpAt7ir0=; b=JEE0TEE8H4eZ9ZrqGip5C9pliAaqs8ef1ffbS/wzTkElYiFbfsDTcRCXK1kH8mL0e0 m2E8XYKBXGLC55XdK3WTdFZIbpTpP7c8ckFfpJG1zk/zKXyPcVvJqwZYEp39pl+tS+FK tHJRrcbYTVVDrSCO6qtnPmiKyu/zw0dOzqi29MINfJQ3de99SGn83W8I9p7LUcmsj92Y W/aHDNWRXYSnaNGXUMLh/MRbF/5NhugoeGqbmvshwCCWsHziKQrfJS44tBdcZhAVyrkq bhmLiDs2S1r0KR4W645hsiJvwGYwRG9YVrOflDYKYdsNJOWFhpTbA/0n01FY9hAKL6eE g4vA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782512317; x=1783117117; 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=MAnvsV/Jfq9mXQw2FQlYUPvK8FGEJjbFugt7HNl51b4=; b=DRz2eGAW+1t5kY6KjRyJoFnOCCJDt72ifOwwO0AJFR6jdrZApk8frx3HBXhLgtAW1a jP+F3ECH7gX2b81i9u/S77O+jRk/sHhhxTHNvCqSCamFVMkAi0w6ZKZnh5ywg/WIzkjA mOjVK9sF0g5aCdaIiZsxZwWzzCD0DQEqfAnqCrtmqvLT9l8QyQJY4nAj0rZDLZ9AFu3C 6kBJTzm1QcK/cdtr/kiMZbtqRx3HDO+pxcKM4ou2RwtTlYjwSvn7VkxCObXlR62uVKBE AFQ1OH+SbEOjTKy9uxJYmmxeoBll1mnBxvwK8PGMUmoZVF9l5ilFeAhe4XwdJuoe3mbB mYvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782512317; x=1783117117; 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=MAnvsV/Jfq9mXQw2FQlYUPvK8FGEJjbFugt7HNl51b4=; b=Y3tBisLV5oiggIRQvjZLLAOey8grci0RGd3WrToT0db2iGOq0RKGB7YONFq7HXSzkV fc+kbhXtg5XSH74I9sL1S94SQn5ZUqwJtvuUEsMbli6tATLTkwdvb4Jxz3uot2FDgV22 qUI1ha5gPQ+PYGuKwBHChDKdGIDXI+uv4a+26c2c+PMd3NMM6Oe2zmVrR9kA5Q14OyqZ Khv7gaYRrGBp/GCZF2Ucx/AjAmZ3IzlELHBjwBt270NJM6YkfC+ggyywXDGSjNkyDHdk Z472TwgVveTb6e3rWlo1vmLXw5KNbXGeZm38p/XJz4Q5ZEkuPlIPD5rSuIadTd4vLlIW mYXg== X-Forwarded-Encrypted: i=1; AFNElJ/osMkLrqcSjV0Qdxzzez7VMW1sP8BOBu3/+Z3QdEHr05T7pz5QhfSNTtAlf3Jest+AXTnwktv4Hk687oxX@postgresql.org X-Gm-Message-State: AOJu0Yz6JBZJiaWOqBo/Bitw0nOmTxSryt1Rky1ZyscEdCzS1uNk+PnK ynmS/MZ6ffyFiJpoKbtqSZU8a7R3JxU8KeC/wQq1lL/R0xUs1w45ioj2/VaZu3HpYAHgTveqx7U IikKUeuE/shPLKSLLIpNZC0AYlBdKR58= X-Gm-Gg: AfdE7clE8joGBDX/nHQVH++3WVrhSIuvA4KI0I/nfUMG1+4Oz2H7KCBlPU0t5T9jmtk MQsBty69O7wfkEOSNhnWt5r4gg6CYbMC7DHYj5hwMyM+yDhSbDFyM9RODCowplrOLKNoPqfvRw8 BZQd2yb/PWw2csw0WmwSTVTsKkEMALWhOvwaRAdaq2RP6KS6jPwv0XRaV0fCT0ecA2l7/u3bhJK J2+BlOnIpQgeCZ/DncEPomzeOV6wbtkNXx+y5ZeEYaZ1EXyndB1DbRxXwbzS8VWmj/WBQ== X-Received: by 2002:a05:6808:1b0d:b0:479:e9d2:26cf with SMTP id 5614622812f47-4921653e74fmr7098081b6e.15.1782512316933; Fri, 26 Jun 2026 15:18:36 -0700 (PDT) MIME-Version: 1.0 References: <20260626.105539.2164712575561010742.horikyota.ntt@gmail.com> In-Reply-To: From: Bharath Rupireddy Date: Fri, 26 Jun 2026 15:18:25 -0700 X-Gm-Features: AVVi8Cc4Ak2-kOQDV8ZGgDBYy7croNVCFzgCvrvUJAQoPeWkqPhUNEjvVlLG4ag Message-ID: Subject: Re: enhance wraparound warnings To: Nathan Bossart Cc: Kyotaro Horiguchi , masao.fujii@gmail.com, qiuwenhuifx@gmail.com, shinya11.kato@gmail.com, 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 Hi, On Fri, Jun 26, 2026 at 11:06=E2=80=AFAM Nathan Bossart wrote: > > 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. Yes. For example: WARNING: database "mydb" must be vacuumed within 99985967 transactions > >> + errdetail("Approximately %.2f%% of MultiXactIds remain before wrapar= ound.", > > > > 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. My initial comment was that "IDs remaining" reads more naturally to me than "ID space remaining," but I'm happy to go with the majority here. IMHO, no need to spend more cycles on this. -- Bharath Rupireddy Amazon Web Services: https://aws.amazon.com