Skip to content

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

Open
PaulJuliusMartinez wants to merge 1 commit into2ndQuadrant:REL2_x_STABLEfrom
PaulJuliusMartinez:check-provider-wal-level
Open

Check that provider has set wal_level=logical and otherwise immediately fail in pglogical.create_subscription.#301
PaulJuliusMartinez wants to merge 1 commit into2ndQuadrant:REL2_x_STABLEfrom
PaulJuliusMartinez:check-provider-wal-level

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