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 1wSTP5-003CiP-1y for pgsql-hackers@arkaria.postgresql.org; Thu, 28 May 2026 05:35: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 1wSTP3-00BBct-1e for pgsql-hackers@arkaria.postgresql.org; Thu, 28 May 2026 05:35:34 +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 1wSTP3-00BBck-0h for pgsql-hackers@lists.postgresql.org; Thu, 28 May 2026 05:35:34 +0000 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wSTP1-000000017ae-2sBi for pgsql-hackers@lists.postgresql.org; Thu, 28 May 2026 05:35:32 +0000 Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-90fe17c157aso1321891385a.0 for ; Wed, 27 May 2026 22:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779946531; cv=none; d=google.com; s=arc-20240605; b=iI01PrfgwnkVRvUCIQfuMOaRjTJTF1FVG6bNOQgjoFF3FXayjwKCDaCMxGO4RnLwdm k7Pdzzo3/KmjrBmvMVSe7cUT1TqSjqKgn4rWE2oxum1FroSwM66FALQCRfpXNa3bjw2y LaWYYr7J2WYknkP9mr9dtluORPAlEpE6R731LWU1ZWk9fQKErwTDNCwosPXU9ncMQe/Q vhZEdEL7ka0ZSILF2OibMqQuHKjgf4jiFfBWAxDbK5/vFuOzOQBYWWfiTp2wazo2/WZ/ 8/OOaB/luyOxD9Q4ubsZ5UmsYjbks91wLE+83e3hwqA7FEL6P44LGO/HhPJpimz9W0+t 9kHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ltyKEblH154bzKmRCvxxdRz/a8OTIs6Cie2ZWmUgXi8=; fh=W5gcqjqsMIbghPzzi1TcoNg88nM7T5J2Rp2dM9UsMO0=; b=G6CEDTizkt98TqSOkoq9wCZQuM6k/PJnatOzyRBuPNMhpsHA33cbDZnMk2Gzq4E2U3 oRkr4SMO3RSQFzjIdZKhjscki3HwXL3fI2kYvnMav03mAi1gHaJ9MYX7lNGtNVPdog2M wuxO+fBOsODv8pITxCjHPqiqWV0OME4hOUre5P83WhvwBBpdtJvwrFFstxpL3LW/MXcY +eEPtLyBYvTD+wSbeK5SCU8mU8P9swLaI227Uw3EH0ovNAtv0Rmo7Hc5bTwa6jLs7jVQ 2u6BYHl2NhZcUQs91yAOxOhzQbux+I/sytER+0pvwl0poU1dVCSsGlNTGzfzSwVlGvcc KFsg==; 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=1779946531; x=1780551331; 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=ltyKEblH154bzKmRCvxxdRz/a8OTIs6Cie2ZWmUgXi8=; b=RrkR4DRZKdzz2FbzA80iVuXX8AdUHp9Bkx2Y4MLp77YpMwt62WYjgGh4jyZrviNvhm 7gxNgA9HlPCo431bkWgqQkQleO/Q2xb/+GsTfyNdgCxnGdOZQAxAuCwFV3bkpeJqaOFj c5wWo+YBcFK0Ph0c4KrYUxH+uTMxa7RN8ON5u14z7fADeSumTSKh1gB6wi+KvdScckMO 67cYXYFJetxchO8f8m0dr/JlDu5u5n56pxwXwDdmU0bNhgzqHnn5QOqQlSQK1vJEcr0E L9i+1hjGAhvKkaOSsXAI4SsxpWpUu1LEqS9/BZfCK3nonqbYd18lNOlmnR4ZOPkBRO6y j7gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779946531; x=1780551331; 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=ltyKEblH154bzKmRCvxxdRz/a8OTIs6Cie2ZWmUgXi8=; b=Zt5T4mbjOVsKs3md7C/NREUkyx0V4u7/7mA0syg7eu8IlO7NPuw9VETaaT5vzcwr2v D+5YqzklHThmTPgki6vTgyEeQDMx0F3rXYY+rSxtRtJeLtGugbaqGxpkl2KmpRib5Qlo R5tqfgxA8OIeD9l6+vHkgjKSlabzvraMMeKWxRRg4CeNQ0TxIy0EAM/Hkn0x0ozhW1+h UYEG1HD9QvyERWPA35SxPT1EOTjd0IbtforAusNgRzR6UeHMgNipHBLnDjUD/u3Cmywb 5drPS9pN9OBd2oUH2vYvo6ekCfs/5rqw7BgZOqKmVCblFu+vHy49WBKfg4ASiNiHIVLA AmVA== X-Forwarded-Encrypted: i=1; AFNElJ/S5fKv+l4pFoWqn7M7Hy/TLDlrLiFRgqxsh/LG+XCzmO5V7yrsune8BSCLRpm1syfCJ2E3W+DNnDZ/tUo2@lists.postgresql.org X-Gm-Message-State: AOJu0YzQ0W7oS6ciSlzM4PJWC9fr4hasi1oUENYcViUheeG2ijfs1VRw c2vbVHMTHsKd0gnayGof03eKxPsIs1kR5bsddx93jslga+BfdGOxOdr49Jj8tq8MGRQbqKLfXDZ G71pSB9Em8fqpmRkr9LL+gYxGfvvQWg== X-Gm-Gg: Acq92OHVqyYNo8Y1LWrUPp0lxMlej3Ue22mSQYh6bLCUDoCPp3ueLZ7RBWB5q8LA9cO XMSY1KyWEAtzdEYJjsuidE3C8jnObWaBlwsMflweaoZgWCTqRMhiJurnOUKHtmJB0hTAd/sMUoq EUwKYpAxJDXmqMToXcghvt3ykQhl73LLXdb8xXl+bnNjuRCbAUJ8OvbIOy7dJl+yUBI/AgI3rEA ep6YRsZW+BFyzj01eq/c3rrPx1hPwITJTQBX7QKvrA8T62BNHZeYXErkd5XRvoFxvhm87bSntY8 /u7bRw/VYEuSzB0RMfIUfQpVnSNjVOjiUx4sHh/AKi1q X-Received: by 2002:a05:620a:1b81:b0:914:aa0d:aa87 with SMTP id af79cd13be357-914b49347edmr3984491085a.23.1779946530731; Wed, 27 May 2026 22:35:30 -0700 (PDT) MIME-Version: 1.0 References: <6634e1b0b5b74e5c2e3b06201120a81e11d82a55.camel@cybertec.at> In-Reply-To: <6634e1b0b5b74e5c2e3b06201120a81e11d82a55.camel@cybertec.at> From: Shinya Kato Date: Thu, 28 May 2026 14:34:54 +0900 X-Gm-Features: AVHnY4K90Kn7uvcoA7rK3T7HDwhsEAnc0t6MLudnpkjMs3frqJsu0YSGkplXxzg Message-ID: Subject: Re: Report oldest xmin source when autovacuum cannot remove tuples To: Laurenz Albe Cc: Japin Li , wenhui qiu , Sami Imseih , PostgreSQL Hackers 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, May 23, 2026 at 10:35=E2=80=AFPM Laurenz Albe wrote: > The patch looks fine to me too. Thanks all for the reviews and LGTMs! Before moving this forward, I noticed there is one thing in the patch that I should fix first. When hot_standby_feedback=3Don, the location where the standby's xmin is recorded on the primary depends on whether physical replication slot is used: - Without a replication slot: the xmin is held on the walsender's PGPROC - With a replication slot: the xmin is held on the replication slot itself I summarized this behavior in my blog: https://dev.to/shinyakato_/4-causes-of-table-bloat-in-postgresql-and-how-to= -address-them-3ec9 The current patch reports the latter case as XHB_REPLICATION_SLOT with the message "logical replication slot", which is misleading because it is actually a physical slot used by a standby with hot_standby_feedback=3Don. I will fix this and post an updated patch later. -- Best regards, Shinya Kato NTT OSS Center