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 1wgsed-006TL3-2z for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2026 23:23:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wgsec-003dzu-2T for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2026 23:23:10 +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 1wgsec-003dzm-1i for pgsql-bugs@lists.postgresql.org; Mon, 06 Jul 2026 23:23:10 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wgsea-000000028oa-0y9J for pgsql-bugs@lists.postgresql.org; Mon, 06 Jul 2026 23:23:09 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-7ea9c6ea7deso2667045a34.3 for ; Mon, 06 Jul 2026 16:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783380186; cv=none; d=google.com; s=arc-20260327; b=jiTB89tt9G55l34MBm5sKeEqiuSR8YuBtXQsNoLrxCcp1B8GKZ9ATXcUUCcmub9N3u UVM7K9gxw+PAal/5L2IhgQZWdKQEpNg6+cAtBfJ46Yik5iuhXAu5RbjUggdbyGZEIRkM Wu3dZog0pg0/e0l3dK2oJLbJubB4YYEwj8GEJq+Ag2g3s1FmdjqdcpjTcFBegHlzLEcr cqBhGbZde5H0Met2ODDqaqPuZH72JVWALUUAfi9Ji4vhqero5a4In02SW2G2rJedzWT3 I7nRgDFcESknmjOLmVwXR07hJiyWFt6rYdcGgZPx7hLIqZmP7UyivV9Q21sCdrNJjhsb z0QQ== 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=VtpVefsW1ncu8JxqRSG1CuUwUClYcdG/RUNbQrz46gw=; fh=Nchc+W8xcYEMSjvQbkEv9Vys2ft9nerJN+kfN2dScLk=; b=PG6O1GsxJWttrQTGBOzVNGxEY8JEuyEersNlMF+XhvBbxGBCtjR3/KN5nPrrMb5/hM kgUpYMHL4tavdCxKgrBq5nm8foaDI4/bCCKXcZ/n4UhxCYA+0v74UB0ycFH6FXgbhmnR N7TKrT6+GVkqbJkl09j2x3nfhTlXqLowhyqczABb1Ihx3vHAHUScrRCsrnijtWR5h27h wHJFfNOplH6EVaEJt2R+v0Kt8c2bSWDNQFfsT/WKkxcmlgy8ermNZP4woqkJzBr0NGpe vEW5DbS/sKLYpR8AbeDuRBhqyGwG+NpABkPZGabiLVkMo26jpO9hk7Xhzdyy1aENiHM5 mETg==; darn=lists.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=1783380186; x=1783984986; 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=VtpVefsW1ncu8JxqRSG1CuUwUClYcdG/RUNbQrz46gw=; b=ge8h36pfBDRqi4bU2TyWACAFU8jWFQ6spq2XcqF3uW5xDc7lLnP8aG5nYYk8ckdDTU qVrMm7m4t0IvgLu7drWdiaxttAQ2TSvHotb3y63ueg9XfUZU7UmSC2HXPOKijPSFNe/x v1fOo/R7WJ5/0+Qa5QZX4Co7wW6ZWQTwueYhm1Mh2lkjlF4AektI+elgb9eNH/zvFahf /uzT3K0qX83owISaLAP15hYlNW8MjXWPFMOY7UopCo2lG2hKkQ0zGxAX3xU3VDw1V+1q pafLVesVyWq5muXUVBxTHsRn+gtBcloU+IdZGpG9S0XNA/L7W/DTuetcmC9ZV6gejfg0 3N3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783380186; x=1783984986; 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=VtpVefsW1ncu8JxqRSG1CuUwUClYcdG/RUNbQrz46gw=; b=En8Q1rqUGB5N4Ss/KNEmDQUkCwmurZrUB6Xx5xxgfEYdMyYK52rzhDmuSpDXaeaNX3 yvVmg2QXdiBXucoOPIFJd4TA/JVzxJuX4SgBPUPZJaw/6maWslJgKYTbbl8KKDQZTga+ +kcSNKkFlYG04iiuX9i0N88e41XD2uw8rACgmQRIAjCEuRLRX/qc7oHftxz6zPLUohip e2/9hj0v5+Z9uF/GP1zOncxOyYeNst5oraKe7pcQJmVOArJByzmFAvgebGicrez0zr5F F2BL9bkiG/T0XZzcStEI9jEqS+Z13CREPIJwtNfGUNS3AUxttjGacBasgiGOmjIpQ3yR 0/mw== X-Forwarded-Encrypted: i=1; AFNElJ+1R+x+MyFo726WXnFJG6/3WgNq2WyUviTZ9ljdR/jLq0RooDFQX25J2BMhzYsmxrfqUWKJGd6m+oZc@lists.postgresql.org X-Gm-Message-State: AOJu0Yz+f20F36ZSyM4Ja8B0l8m4QqW7941J0gdBAoeGue61P8nK4Ey4 ZjR0GuQ2Lm5IO2bh+7DttZ0wwwGHlf25R17Hr/yXHsfKDraC2s6bC4/5h/SQUacPZXIxi0Mi+2T Y/hVwD3pDkx+DVFsm9lpnVU43VjMbX4o= X-Gm-Gg: AfdE7cn5WyjcHScl6+SsO/4brQUjl1PLLD+/VfCdO6OTybwWWRs0y42YGZ1ID5Tc2Yb bS3SBuBd7EHZi5jLof/fMtzMdmDigAKu/wSLsiNS30pfPctCfx1g3pqMvQHahHTbI5nq5aOZsB0 kSd/2uyr6Yg2J+QORXLVOvumIXtsIQc6kMT8JEeFPrmgcoqKppnZShCy3OG6dwEYSSaFYwC59CF ShGP+RRlueCg6cm4vXNUPOt51wPbjkD3GmNMUL2hE6gkTXKomL8ppPB4xZMmA5Z6O8MlFfAwdMo OjB1NQhXFSjTFpwIQnHbv4fD2Ihi8VVhBX4z2gI+9kVwae/jt459OafW4w9l5a5A9f9rIQ31fV6 CT9m1nBiAb0Gb X-Received: by 2002:a05:6820:169e:b0:6a1:7846:3c50 with SMTP id 006d021491bc7-6a3553da3b2mr1727926eaf.42.1783380182320; Mon, 06 Jul 2026 16:23:02 -0700 (PDT) MIME-Version: 1.0 References: <18876-0d0b53bad5a1f4c1@postgresql.org> <20260611132910.50412ffa57bbc8e70bad8fc3@sraoss.co.jp> In-Reply-To: From: Fujii Masao Date: Tue, 7 Jul 2026 08:22:50 +0900 X-Gm-Features: AVVi8CcKPaS5HIAVVpcQ2F15pC9wP7QuCfjuFwkHQug8woMFK3B-bxIVUG3V68I Message-ID: Subject: Re: BUG #18876: HINT messages for mxid wrap-around say "drop stale slots", but that may not be appropriate To: Robert Haas Cc: TAKATSUKA Haruka , pgsql-bugs@lists.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 Tue, Jul 7, 2026 at 2:23=E2=80=AFAM Robert Haas = wrote: > > On Thu, Jul 2, 2026 at 10:26=E2=80=AFPM Fujii Masao wrote: > > I've pushed the patch. Thanks! > > Hi, > > I'm a bit concerned about this patch, specifically this part: > > + Unlike transaction ID wraparound, replication slots do no= t > + directly hold back multixact cleanup. Dropping stale replication > + slots is therefore not usually relevant to resolving multixact ID > + wraparound problems. > > The problem with the word "usually" here is that it leaves room for > replication slots to be relevant in some corner case that isn't > described, while asserting without explanation that they most often > won't matter. I feel like that leaves users and DBAs in a very awkward > position. The way it seems to me, either holding back the XID > threshold can indirectly hold back the MXID threshold, or it can't. If > it can, then the documentation before this patch was correct, and this > shouldn't have been committed, and if it can't, then we don't need the > word "usually" here. > > Now maybe that's a bit too simplistic. I'd be OK with a statement > involving "usually" if it went on to explain convincingly why it > doesn't normally happen and why it sometimes can under extraordinary > circumstances. But without that, I feel this is making things less > clear rather than more clear. As far as I understand, there is no case where replication slots hold back MXID cleanup. But I added "usually" only as a cautious wording choice. If that my understanding is correct, I would like to update the docs to remove "usually". Also, since "directly" in the same sentence might cause similar confusion, it may be better to remove that as well. So I am thinking of changing the text to something like this: Unlike transaction ID wraparound, replication slots do not hold back multixact cleanup. Dropping stale replication slots is therefore not relevant to resolving multixact ID wraparound problems. Thoughts? --=20 Fujii Masao