From 3760e39e486ccb1304124b51b2efe907e47b4ed8 Mon Sep 17 00:00:00 2001 From: H-Shay Date: Wed, 23 Mar 2022 17:34:33 +0000 Subject: deploy: e78d4f61fc881851ab35e9a889239a61cf9805e5 --- develop/postgres.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'develop/postgres.html') diff --git a/develop/postgres.html b/develop/postgres.html index c108a49f04..2c96b778b0 100644 --- a/develop/postgres.html +++ b/develop/postgres.html @@ -365,11 +365,12 @@ new line, it is inserted before:

Fixing incorrect COLLATE or CTYPE

Synapse will refuse to set up a new database if it has the wrong values of -COLLATE and CTYPE set, and will log warnings on existing databases. Using -different locales can cause issues if the locale library is updated from +COLLATE and CTYPE set. Synapse will also refuse to start an existing database with incorrect values +of COLLATE and CTYPE unless the config flag allow_unsafe_locale, found in the +database section of the config, is set to true. Using different locales can cause issues if the locale library is updated from underneath the database, or if a different version of the locale is used on any replicas.

-

The safest way to fix the issue is to dump the database and recreate it with +

If you have a databse with an unsafe locale, the safest way to fix the issue is to dump the database and recreate it with the correct locale parameter (as shown above). It is also possible to change the parameters on a live database and run a REINDEX on the entire database, however extreme care must be taken to avoid database corruption.

-- cgit 1.5.1