1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-06-05 14:36:09 +02:00
infrastructure/roles/postgres
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 Remove the three dashes from all YAML documents 2022-06-08 14:35:45 +03:00
files Migrate PostgreSQL to C.UTF-8 2022-11-03 00:11:36 +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 Migrate PostgreSQL to C.UTF-8 2022-11-03 00:11:36 +01:00