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 NOREPLICATION option for Postgres 9.1 #333
Conversation
Fixing a bug when using this module with Postgresql 9.1 that causes alter role statements to execute during every apply.
Can one of the admins verify this patch? |
This is a similar-but-different solution to my pull request #334 However I think they both have the exact same effect, mine is a bit cleaner though. (?) |
Got it. I'll close mine. So to confirm, this stops it spitting out crap on stdout every single time right? |
@Zephod Yes sir, it was annoying me having that crap on stdout and was causing my nodes to show as changed in the puppet dashboard. My patch fixes it :) |
I can confirm that this patch does work for me with psql 9.1.11. (As a side note, this PR doesn't break the tests... they were broken by new rspec-puppet releases, I opened #339 investigating the test failures.) |
I really hope a dev comes around and merges this, it's an annoying bug :( |
I will definitely take a look at this for you all in an hour or so. Let me drink this coffee first as I just crawled out of bed. |
Fix NOREPLICATION option for Postgres 9.1
Fix NOREPLICATION option for Postgres 9.1
Fixing a bug when using this module with Postgresql 9.1 that causes alter role statements to execute during every apply.
If replication is disabled, the module is supposed to alter the role to set
NOREPLICATION
, however,$replication_sql
is set to an empty string by default to avoid breaking on pre 9.1 installs.