Re: pg_xmin_horizon: a system view of everything pinning the xmin horizon

Поиск
Список
Период
Сортировка
Искать

Re: pg_xmin_horizon: a system view of everything pinning the xmin horizon

От:
Scott Ray <scott@scottray.io>
Дата:
Вложения:
On Thursday, July 16th, 2026 at 11:56 PM, solai v  wrote:

> I would like to suggest that it may also be worth considering exposing
> the database name (datname) in addition to datid for better
> observability and easier interpretation by DBAs as a future
> enhancement, although the current implementation is functionally
> correct.

Thanks for testing the patch.

Adding datname is a good idea and follows the precedent of
pg_stat_activity, pg_replication_slots, and pg_prepared_xacts. The
attached v2 adds datname.

--
Scott Ray

Re: pg_xmin_horizon: a system view of everything pinning the xmin horizon

От:
Scott Ray <scott@scottray.io>
Дата:
Вложения:
I rebased on 4e68b7e291d.  Upstream took TAP 055, so the new TAP is now 056.

--
Scott Ray

Re: pg_xmin_horizon: a system view of everything pinning the xmin horizon

От:
solai v <solai.cdac@gmail.com>
Дата:
Hi all,

On Mon, Aug 3, 2026 at 5:44 AM Scott Ray  wrote:
>
> I rebased on 4e68b7e291d.  Upstream took TAP 055, so the new TAP is now 056.
>


Thank you for addressing my suggestion. And thank you for the updated
patch. I reviewed and tested the v3 patch, including the newly added
datname column. The patch applied cleanly and built successfully on my
tree and verified that the datname column is now included in the
pg_xmin_horizon view definition and is correctly populated for backend
and prepared transaction entries. The reported values were consistent
with the corresponding database information, and the addition improves
the readability of the view by avoiding an extra join to pg_database.
The new column also aligns well with the existing interfaces provided
by pg_stat_activity, pg_replication_slots, and pg_prepared_xacts.
The updated patch looks good to me.

Regards,
Solai


Re: pg_xmin_horizon: a system view of everything pinning the xmin horizon

От:
Scott Ray <scott@scottray.io>
Дата:
Вложения:
On Tuesday, August 4th, 2026 at 2:42 AM, solai v  wrote:

> The updated patch looks good to me.

Thanks for the review and testing.

Attached is v4.  It changes documentation and comments only, so the
code is identical to the v3 you tested.  The leave-one-out recipe
was too long and didn't handle database scoping properly, so I
removed it.  Also, I rewrote and trimmed some comments and
documented two caveats, one about cross-row consistency and the
other about aggregate slot xmin contribution.  Patch v4 applies to
master b5978350222.

--
Scott Ray

Re: proposal for a new minor release schedule

От:
Greg Sabino Mullane <htamfids@gmail.com>
Дата:
Вложения:
I would lean towards every other month, if for no other reason than the regularity and ease of prediction. Whether that is odd or even numbered months seems unimportant.

Cheers,
Greg

FAQ