Re: Report oldest xmin source when autovacuum cannot remove tuples

From: Dilip Kumar <dilipbalaut(at)gmail(dot)com>
To: Sami Imseih <samimseih(at)gmail(dot)com>
Cc: wenhui qiu <qiuwenhuifx(at)gmail(dot)com>, Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Report oldest xmin source when autovacuum cannot remove tuples
Date: 2025-11-17 02:51:04
Message-ID: CAFiTN-te-2RBhz3AdcyQYVqyxkLKgK6xnvLaXgdo=Jc2ywFd9A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Nov 15, 2025 at 5:56 AM Sami Imseih <samimseih(at)gmail(dot)com> wrote:
>
> Thanks for starting this thread! This is a very useful
> feature that users will find beneficial to easily narrow
> down the reason the xmin horizon is being held back,
> and take action.

+1 for the idea. In BackendXidFindCutOffReason() you have directly
reported using NOTICE I believe that is just to show the idea and you
are planning to append this to the main message? Apart from that we
are looping the whole pgprocarray, however it is only done when we are
vacuuming with verbose mode so might not be that bad.

--
Regards,
Dilip Kumar
Google

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2025-11-17 02:59:30 Re: GNU/Hurd portability patches
Previous Message wenhui qiu 2025-11-17 01:43:05 Re: Report oldest xmin source when autovacuum cannot remove tuples