Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[-] 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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants