-
- Downloads
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] https://github.com/matrix-org/synapse/blob/19a57f4a3710d6c3f7cc9d031e0e59bc2ed3b052/docs/postgres.md#fixing-incorrect-collate-or-ctype Fix #470
Showing
- roles/common/tasks/main.yml 0 additions, 5 deletionsroles/common/tasks/main.yml
- roles/install_arch/tasks/main.yml 0 additions, 8 deletionsroles/install_arch/tasks/main.yml
- roles/postgres/files/upgrade_pg.sh 1 addition, 1 deletionroles/postgres/files/upgrade_pg.sh
- roles/postgres/tasks/main.yml 1 addition, 1 deletionroles/postgres/tasks/main.yml
- roles/postgres/templates/postgresql.conf.j2 4 additions, 4 deletionsroles/postgres/templates/postgresql.conf.j2
Please register or sign in to comment