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 1waeBc-001x7f-1K for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Jun 2026 18:43:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1waeBb-0001w8-0K for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Jun 2026 18:43:27 +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 1waeBa-0001vz-2b for pgsql-hackers@lists.postgresql.org; Fri, 19 Jun 2026 18:43:26 +0000 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1waeBZ-00000001BIR-2Ck8 for pgsql-hackers@postgresql.org; Fri, 19 Jun 2026 18:43:25 +0000 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-7e93d1dd156so206008a34.0 for ; Fri, 19 Jun 2026 11:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781894604; x=1782499404; 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=XRg01BKj8Z/BD7TCsT+IMsh6F42oK2xrxXiSYTFcV5I=; b=hF+HSMcWgCqk74dlHK3OXmraIJ+v78roQGqt+pYgxn8+eJq2WoBDBkOSUkOR0JMrq7 zpai3bQtjK6c6PvaM+eMKzTridX7jqq0WECSCydM3DC+pFhA4os5Pzoc2HGj2149Oo7W F6xnLCCWjms+1AvoFCwqp+XFrpjAIfVOizFKAhd4Ou+/DTy9on9VGO2sStPDcfiEIx/2 EyPbdFx4j70szYLmZUVdi/BHitvSNQMUQSFX2nuJuPsiOL3jiryfAiSQMitxRy480+pz s6EJMXkjaU6UHbU3lNT+gkTxdWBJgsnQp+w4MpS3Sl6Takhyu/wxdWOAewj2xlR/Vg4z V8BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781894604; x=1782499404; 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=XRg01BKj8Z/BD7TCsT+IMsh6F42oK2xrxXiSYTFcV5I=; b=MT6wPQnW5BZDyiOJISnbgX8Jw3CTwWQWn3Yi3PstJc+OH36TM/IoInEfSbRMP4Fos+ UrlbcG2wdjX/o4walzhscFObqScl7DrSP5HAPaGjDd8PMY/8XNtxvwXiWfXeZLVJSjzq RJuvDw9AjMv/TQk+5kx0bE9gFg9aiw0I4rtXdnFfMfNUXvTrLQx9KLZSEbAHO0mUs5qH Kc0Ah9u2RW7LnX88fQghFB6QGskZA0fE5BT6braJ0d8iFVGIyc3v79+qarFs/dduiqFY iUHjJg+usWFHmppdN/GsSpz8JYOXwwCiNZVu60xgiHva1CZh5mnIde1irnqqcE/5lUjj GZzA== X-Forwarded-Encrypted: i=1; AFNElJ9jVELz750S5Acks3kzSwuuqmyBojvAOWIYpWfDsIZ97adNnPcK6Uz8w8VR4kR8H6UYgb9ZIyosNQ3nUsw7@postgresql.org X-Gm-Message-State: AOJu0Yx1/hJWbxqTS6X0Jm8oZKJxCYbfImCOvWr7+Yjuuf0LojaNAaAQ DWfOmY+8u8auOPnaArPsVcNs5/oxAZSvVQJEUYDB16wnvY2M12K8qfa8 X-Gm-Gg: AfdE7cnhhcwBSYj/ff4BuTuplk2hA7udL3PeadYrUfVPNmRg8Lm4XSeGksu3F9KCVhK aGfiNwU035wiZHE2VqKJ7I/wa94dcrcLmrnxolBEtghSuizdm+puQiEFgtQTWZpNB1RuBZoRr6l z8NjAXXTdcJtg8MsET1yeM5hBavFwzVmB8i3mZ3RZ7//xOTDu8V2eJwx/dXs88oV2GOn8xKxdFC KmGtuQ+MHZcWsXwRNRVW0j4/MXLUEgfWn8uYjlyBX4T7O79ykUXcg1koKIb/m5y7G5o7HblP2BZ JKqBrOWrXAXpNOHTyOCZR8NBW2PrXtnRyN6auHccucmTJfy3wqL5OspbMI5k7UptHrrhZoKRemw g32hyh+uSbXNGiHWnDx3xHR8QCaccz0ERHgLeycbkr1hJZFo7ML/Xa0VJD1MCI7UZrAmoqua5+i p6qrSoWTz8YPdMqX+EaThc3pPjkKzDmO4D8YL15lbxsX2qDOC/9NthPdDN2MOQx8SsxJR/Q+cSq exSqEXYhJk= X-Received: by 2002:a05:6830:83aa:b0:7e6:f5bc:496 with SMTP id 46e09a7af769-7e92d8eedc8mr3845157a34.16.1781894604506; Fri, 19 Jun 2026 11:43:24 -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-7e92e389c97sm2603612a34.3.2026.06.19.11.43.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2026 11:43:23 -0700 (PDT) Date: Fri, 19 Jun 2026 13:43:22 -0500 From: Nathan Bossart To: Fujii Masao Cc: wenhui qiu , Shinya Kato , pgsql-hackers@postgresql.org Subject: Re: enhance wraparound warnings Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Jun 20, 2026 at 03:13:23AM +0900, Fujii Masao wrote: > The percentage is calculated as (xidWrapLimit - xid) divided by half > of the ID space. This represents the remaining ID space before wraparound, > not the percentage of IDs that are still available for use. Since > PostgreSQL stops assigning new XIDs/MultiXactIds at the stop limit > before reaching the wraparound limit, the current wording could be > interpreted as overstating how many IDs remain usable. > > So, how about changing the wording to match the calculation? For example: > > Approximately XX.XX% of transaction ID space remains before wraparound. > > and similarly for MultiXactIds. That seems reasonable to me, thanks. -- nathan