-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track logical replication slot catalog_xmin age (#19083)
Logical replication subscribers report the catalog_xmin to the publisher. This is exposed through the pg_replication_slots system view. The catalog_xmin can have an impact outside of catalog, notably on index pages reusability: A deleted index page can only be set as reusable when it's not visible by anything in the global shared visibility. This visibility includes catalog_xmin, thus a lagging logical replication can lead to increased index size due to not being able to reuse index pages. The first iteration of metrics from pg_replication_slots didn't include catalog_xmin. This patch adds it and reports the catalog_xmin age as a metric.
- Loading branch information
Showing
4 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Track logical replication slot catalog_xmin age |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters