mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
disable synchronous commits
http://www.postgresql.org/docs/current/static/runtime-config-wal.html#GUC-SYNCHRONOUS-COMMIT
This commit is contained in:
parent
ea522fcb77
commit
b8e3c407ae
2 changed files with 12 additions and 0 deletions
4
roles/postgresql/handlers/main.yml
Normal file
4
roles/postgresql/handlers/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- name: restart postgresql
|
||||
service: name=postgresql.service state=restarted
|
||||
when: postgresql is defined and postgresql.enable is defined and postgresql.enable == True
|
||||
|
|
@ -10,6 +10,14 @@
|
|||
become: yes
|
||||
become_user: postgres
|
||||
|
||||
- name: Disable synchronous commits
|
||||
lineinfile: dest=/var/lib/postgres/data/postgresql.conf
|
||||
regexp=^synchronous_commit
|
||||
state=present
|
||||
line="synchronous_commit = off"
|
||||
notify:
|
||||
- restart postgresql
|
||||
|
||||
- name: Disable and stop PostgreSQL
|
||||
service: name=postgresql.service enabled=no state=stopped
|
||||
when: postgresql is not defined or postgresql.enable is not defined or postgresql.enable != True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue