You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PMM-14411 - Enhance pg_custom_replication_wal query for accurate WAL … (#338)
* PMM-14411 - Enhance pg_custom_replication_wal query for accurate WAL metrics
Updated the pg_custom_replication_wal query to conditionally return the correct WAL metrics based on the database recovery state. Added logic to differentiate between received and current WAL LSNs, and adjusted lag calculation accordingly. Set the 'master' flag to true for this query to ensure it runs on the primary database instance.
* Refactor pg_custom_replication_wal query for clarity and accuracy
Updated the pg_custom_replication_wal query to improve readability and ensure accurate reporting of WAL metrics based on the node type (primary or replica). Adjusted the descriptions of the metrics to specify their relevance to either the primary or replica nodes, enhancing the overall understanding of the metrics collected.
0 commit comments