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 1wUaM3-001HFw-1s for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Jun 2026 01:25:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wUaM1-00GrJg-0S for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Jun 2026 01:25:09 +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 1wUaM0-00GrHM-2i for pgsql-hackers@lists.postgresql.org; Wed, 03 Jun 2026 01:25:08 +0000 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wUaLz-00000000prB-0ktZ for pgsql-hackers@lists.postgresql.org; Wed, 03 Jun 2026 01:25:07 +0000 Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-5174363a843so2255751cf.1 for ; Tue, 02 Jun 2026 18:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780449906; cv=none; d=google.com; s=arc-20240605; b=dPNvs/d7f9PhN5PC+RYPo6arQ+ak6YQGRBavfX6l0GIVxansKkQtborcdDrYD+gDUl kcFFwJ3ZzryyA383ceF4DNDIq8tIayxxB/KzwaaqgFpEGtP45gSUwHzno2EDhvNlLTep /4JJPdpcBD84kxr/0OFXI9cOrYq3kuexY2ws8oyf0aSNLT8yWpddIBERYfoUk3ChmrmI iVSfn+tlY9OC3NlYRWPlnwTMXvRZqShTFJvMaMsgB1emY+kmPAnwro9fN30kLmlmysYY MBg4lrleg3KE9bcvhqs4jeSAF8FIrkwnVwWUStB+eqLSE5YubCLwF/bl1VYlWHoujbMa lILQ== 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=dPv7cIdJuMsc6Mofk/d4MCtjoc7Wis7HXaGLKo5apm8=; fh=O3apuz6MUImfZOsnWQZFQVWyquOUyk9vQ2Z7u7Cq8Ng=; b=SpAmQ0ectUXK3bH0OpZT6dax2cieCFwRK1r38QkcyxFi0fHCCtsefeXG+rDeJJ7mUh UhDe7gJHct2okj40ZfPa3FusIRD5My5k4tyrCe5zfxYdVNx0uCR0QEKMCIKJZUWAkzwY s+gN7f1l6aMSjwVSUO0eXjJxKJXcScTXMEbzAFRzMEEDCl/P24hutLTbMYsbNHwDsJyj XcCcPGIgWJE95zlJvm4X8s5WkA9XOlPi1dwpDVe6QrIZwwP1i6xZy42ghrsYBIPZDuQx 3O7w1IiqyG0qNhbG3b4sjuYfhOajvX5gR6Cff4n432BrfGFfDX7C2YtajXBT7GZQc5BY kMEQ==; 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=1780449906; x=1781054706; 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=dPv7cIdJuMsc6Mofk/d4MCtjoc7Wis7HXaGLKo5apm8=; b=eh2rQb9WIr6GfOahK1dkLAe9ChFBW/bnf6Pwr/K9Is9/sd5woGyW6dbH6x7QXsLWTD GFMdc4GTnXprmvSDWhKvse2PxaBJjUFWGeL9x7ZqR+uQ/LDynkmoqv/msgqKIqiOjj5J FiUsJKeDHgGxkyS2iT1ctOF1jzuqJZ2SKkTfzWIsK8BEIzjI+by8PwKzfQEnrhhVNyLn +tg4Da7pxB61hxAu3DCOPGWIil5dC+PKOJWqXHnecQNCv7Oi4jy1kRVczUo2rVN7p2Ny rCRYe6rBtJOcNx12ay0CL6zKokkGtYe/7PvL4Y8OQT2OMeALwlLAWWYJkTmBMln64abw FJ/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780449906; x=1781054706; 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=dPv7cIdJuMsc6Mofk/d4MCtjoc7Wis7HXaGLKo5apm8=; b=gdBUfbBOT89cs6R7RJoZztoizq43oEnObSHQyiRBOdLlfaiMhVwxlRmlWC8paUmQwn /VxkoQoVZW2NAKzTZs7FCrRyfSoHXn0SwmExOAbpo2v0mhZf1/Wjwlc32rEtgSJsiS18 giuYcfTZScwDHtaTAxEOgtn2Tn0jqT/L+iqB4RUdfiymtsFYncVi7Mnrykd8nBLkauxi GUKLM7Zupw5/IMcNmpz4pGVatxCnaq05k9oJ0cSbuOievQIwnetQXoQg9VH1m2Mx7xri jckKE1dwXua7LxKgdPTWUOu4itHLLV4/Vz5U3hQzWTIqcYPgtT3dG4A7M8zY0V1OdqIX azeg== X-Forwarded-Encrypted: i=1; AFNElJ8o0Sn3rmw2vhyyIjDL64hQ9cFztWz2wgEZCXgy3Kw2WHGQVX+1PsvLQfp6XkhV/7aEpZQMOUBuLayVnlki@lists.postgresql.org X-Gm-Message-State: AOJu0YxU0zbHB+qRDl5d5nVpplm0Nb3m/ckoJd7xJIyOtgwnHGDxCmdY yDz9fZ/qviR6rsLi45otbR7aGQNSnhJgiXLONOjcf+yOKxlPoL88f0BblC1ZIVR0b/heTZN8Ci9 3s6+D+XZHTpt/LjqfFj2qd6dkIzz+IQ== X-Gm-Gg: Acq92OHOF8Qp4ogdiq1+yg22v1SDWDOKnGkZ2o2fCuT3GvTXxhgarlalS75KEIqxJeq ZHGzU73LrDt/jFC/dUHh4luyZzCXvRls8uY2pkElbh9RZK/ZMg+H6pv4vugogAFux3Nj8cozaal e+0zYpikJbC9kdSBeZgvaUN7cZu6bcoot+zOt2drHm//8RLY1PidPV6QgZ7asU+nEStdPrbniFJ Hd1TJ6O4wrfqX1CYbo890oqjWLdu5+pf6+Nz04ZBRp6Y0uyGVbMvM+HvZcoljGaHPyTQXrqQSCC Kh7aFUy1C6dk+Th/GENpX3jEWLTvjL5qVtaryglY+tX/cAJEng== X-Received: by 2002:a05:622a:494:b0:517:5f11:b353 with SMTP id d75a77b69052e-517798730f8mr15767671cf.41.1780449906147; Tue, 02 Jun 2026 18:25:06 -0700 (PDT) MIME-Version: 1.0 References: <6634e1b0b5b74e5c2e3b06201120a81e11d82a55.camel@cybertec.at> <3bnBUxwx2npXqvHL0trI11LOOvzQ7LI0GzWqbaj5SJnk7DTb1uzStGveKwj0JJmBW4ebzGIF3az7of4I4rQeaO_PRqDnnClCduPyjM6gPgM=@scottray.io> <20260602.165755.1084850050958933598.horikyota.ntt@gmail.com> In-Reply-To: From: Shinya Kato Date: Wed, 3 Jun 2026 10:24:29 +0900 X-Gm-Features: AVHnY4JLupofz2pv_JwVTqa3TsDnEq0dCcyuOOFhYJSH3bhKjumGPatz8RrURhI Message-ID: Subject: Re: Report oldest xmin source when autovacuum cannot remove tuples To: Scott Ray Cc: Kyotaro Horiguchi , laurenz.albe@cybertec.at, japinli@hotmail.com, qiuwenhuifx@gmail.com, samimseih@gmail.com, pgsql-hackers@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 Wed, Jun 3, 2026 at 10:05=E2=80=AFAM Scott Ray wrote= : > I've been working on a view like this. It shows the horizon > contribution for each backend, prepared xact, replication slot, and > HSF walsender, broken down by class. It also shows - for each > contributor - how the horizon would shift if that holder were > removed. > > Shinya said [1] that we could have a view in the future. We could > have both the logging and the view call a single function that reads > the procArray and other sources to gather the horizon information. I > think the logging and the view would complement each other. > > Should I start another thread? My mild preference would be to keep the discussion on this thread, since the shared function design is central to both the log and the view and may be easier to keep aligned in one place. That said, I'm not strongly attached to that, so please pick whichever feels more convenient. --=20 Best regards, Shinya Kato NTT OSS Center