Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

[-] fix replication slots metrics for replica instances #768

Merged
merged 3 commits into from
Apr 24, 2024

Conversation

marcelorauldiaz
Copy link
Contributor

This PR solve the following issue :

ERROR:  recovery is in progress
HINT:  WAL control functions cannot be executed during recovery.

Since pg_current_wal_lsn() execution is not allowed on replica instances pg_last_wal_replay_lsn() is used.

…stance and pg_current_wal_lsn execution is not allowed
@pashagolub pashagolub changed the title Fix of replication slots metrics when it's executed on the replica instances. [-] fix replication slots metrics for replica instances Apr 24, 2024
@pashagolub pashagolub assigned pashagolub and unassigned markwort Apr 24, 2024
@pashagolub pashagolub added the bug label Apr 24, 2024
marcelorauldiaz and others added 2 commits April 24, 2024 10:55
LGTM

Co-authored-by: Pavlo Golub <pavlo.golub@gmail.com>
Co-authored-by: Pavlo Golub <pavlo.golub@gmail.com>
@pashagolub pashagolub merged commit 35fbf79 into master Apr 24, 2024
@pashagolub pashagolub deleted the fix-replication-slots-on-replica branch April 24, 2024 13:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants