Merge lp:~bellini666/charms/precise/postgresql/extra_options into lp:charms/postgresql
Proposed by
Thiago Bellini
Status: | Merged |
---|---|
Merged at revision: | 96 |
Proposed branch: | lp:~bellini666/charms/precise/postgresql/extra_options |
Merge into: | lp:charms/postgresql |
Diff against target: |
56 lines (+35/-0) 2 files modified
config.yaml (+23/-0) templates/postgresql.conf.tmpl (+12/-0) |
To merge this branch: | bzr merge lp:~bellini666/charms/precise/postgresql/extra_options |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email: mp+219057@code.launchpad.net |
Description of the change
Some extra options we set on one of our postgresql clusters.
Those are useful to tune the cluster performance a bit.
To post a comment you must log in.
Thanks for this.
I think that, apart from checkpoint_timeout, the new options should be 'type: boolean' with a default matching the PostgreSQL default, the same as existing options like 'autovacuum' and 'log_checkpoints'. This will also let you remove the conditionals from the template.
I think that the fsync option should come with a warning, something along the lines of 'If fsync is turned off, database failures are likely to involve database corruption and require recreating the unit'. This is of course made clear in the PostgreSQL documentation, but I expect some juju users won't be reading that.
None of these options conflict with the recent landing of pgtune support, which is good.
I'm happy to land this branch with these changes, and they are simple enough that I can make the changes for you if you would rather.