Skip to content

Detect server role #107

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

Open
levkk opened this issue Apr 19, 2025 · 1 comment
Open

Detect server role #107

levkk opened this issue Apr 19, 2025 · 1 comment
Labels
backend Feature to manage backend connections enhancement New feature or request

Comments

@levkk
Copy link
Collaborator

levkk commented Apr 19, 2025

Description

Automatically detect server role, e.g., primary or replica.

This can be done by running SELECT pg_is_in_recovery(). Need to be careful to avoid split-brain situations during failover.

@levkk levkk added backend Feature to manage backend connections enhancement New feature or request labels Apr 19, 2025
@vitabaks
Copy link

See also my comment regarding the integration with Patroni

#108 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Feature to manage backend connections enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants