| From: | Scott Ray <scott(at)scottray(dot)io> |
|---|---|
| To: | Shinya Kato <shinya11(dot)kato(at)gmail(dot)com> |
| Cc: | Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, laurenz(dot)albe(at)cybertec(dot)at, japinli(at)hotmail(dot)com, qiuwenhuifx(at)gmail(dot)com, samimseih(at)gmail(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Report oldest xmin source when autovacuum cannot remove tuples |
| Date: | 2026-07-12 00:52:34 |
| Message-ID: | hi43TYkkiVFTHU-Ep1YShHpZABqvdH5inI4E2pMjz52CrjurHxaJ9fiFPGzy466_wKSO58zPxHINiE49JEXDVAutiSKZzve819pr05l1ByI=@scottray.io |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Jun 3, 2026 at 10:24 AM Shinya Kato <shinya11(dot)kato(at)gmail(dot)com> wrote:
> On Wed, Jun 3, 2026 at 10:05 AM Scott Ray <scott(at)scottray(dot)io> 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.
I posted a patch for the view:
I thought that posting the full patch here might confuse cfbot, so I
decided to create a new thread and CF entry.
--
Scott Ray
| From | Date | Subject | |
|---|---|---|---|
| Next Message | ZizhuanLiu X-MAN | 2026-07-12 03:00:34 | Re: support create index on virtual generated column. |
| Previous Message | Scott Ray | 2026-07-12 00:22:00 | pg_xmin_horizon: a system view of everything pinning the xmin horizon |