-
Notifications
You must be signed in to change notification settings - Fork 199
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
Don't fail if the replication slots already exists during creation #1049
Comments
Hello @antonag32, We don't think that adding a flag to A possibly better way of handling that would be having Barman to exit with different return codes depending on the issue that it faces. Right now it exits with In any case, even with the current Barman code, which contains no classification of errors with different return codes, you should still be able to provide idempotency through your scripts when running Best regards, |
Hello @antonag32, After a deeper look around, we think it actually makes sense to add a new flag to As we can see in the pg_receivewal docs, there is an option called
We could create a similar option in
Would you still be willing to contribute a PR to Barman, adding Best regards, |
Hello @barthisrael I will be happy to contribute. I am a bit busy this week but should be able to start working on a PR next week. Thanks for taking the time to review the issue. |
Hey @antonag32 ,
Sure, thank you! |
I am setting up barman automatically through some scripts and it would be helpful to provide some idempotency when creating replication slots. I am specifically talking about the following command:
barman receive-wal --create-slot server-name
If the slot exists the command fails. I was thinking about adding a new flag so the command won't fail if its because the replication slot already exists.
What do you think? I can make a PR if you agree to it.
The text was updated successfully, but these errors were encountered: