Skip to content
Snippets Groups Projects
Verified Commit 9809d84d authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

postgres: Make datadir nocow

Improves performance on btrfs.
parent 5c646817
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,21 @@
- name: install postgres
pacman: name=postgresql,python-psycopg2 state=present
- name: create postgres data dir
file:
path: /var/lib/postgres/data
state: directory
owner: postgres
group: postgres
mode: 0700
- name: make postgres data dir nocow
file:
path: /var/lib/postgres/data
state: directory
attributes: +C
when: filesystem == "btrfs"
- name: initialize postgres
become: yes
become_user: postgres
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment