1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-06-02 09:36:03 +02:00
infrastructure/roles/common
Kristian Klausen e9e44d445c
Migrate PostgreSQL to C.UTF-8
C.UTF-8 is installed by default, so we can avoid messing with locale-gen
by using that.

All the postgres servers (excluding matrix due to[1]) have been migrated
with the following commands:
# sudo -u postgres pg_dumpall > d
# sed "s/LOCALE = 'C'/LOCALE = 'C.UTF-8'/" -i d
# systemctl stop postgresql.service
# mv /var/lib/postgres/data{,.old}
$ ansible-playbook --diff -t postgres playbooks/<host>.yml
# sudo -u postgres psql < d

[1] 19a57f4a37/docs/postgres.md (fixing-incorrect-collate-or-ctype)

Fix #470
2022-11-03 00:11:36 +01:00
..
defaults common: increase default zram-fraction to 1.0 2022-09-11 10:50:19 +03:00
files common: configure smartd to run self tests 2022-01-04 21:25:41 +01:00
handlers Capitalize the first letter of all task names 2022-08-23 06:57:13 +03:00
tasks Migrate PostgreSQL to C.UTF-8 2022-11-03 00:11:36 +01:00
templates common: increase default zram-fraction to 1.0 2022-09-11 10:50:19 +03:00