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

Check that provider has set wal_level=logical and otherwise immediately fail in pglogical.create_subscription. #301

Open
wants to merge 1 commit into
base: REL2_x_STABLE
Choose a base branch
from

Conversation

PaulJuliusMartinez
Copy link

Currently, if attempting to create a subscription to a node that has not set wal_level=logical, the call to pglogical.create_subscription will succeed, but the node will appear in a down state and users will have to check the logs to see that the replication slot was unable to be created because the provider has wal_level < logical.

Since we already synchronously connect to the provider when creating a subscription, there's no reason to not verify that they have the correct wal_level setting, and immediately tell the user what is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant