Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 5859e2f

Browse files
babolivierH-Shay
andauthored
Mention the new behaviour on unsafe database locale in the upgrade notes (#12288)
Co-authored-by: Shay <[email protected]>
1 parent 8b7b371 commit 5859e2f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

changelog.d/12288.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Refuse to start if DB has non-`C` locale, unless config flag `allow_unsafe_db_locale` is set to true.

docs/upgrade.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ experimental_features:
9999
groups_enabled: false
100100
```
101101

102+
## Change in behaviour for PostgreSQL databases with unsafe locale
103+
104+
Synapse now refuses to start when using PostgreSQL with non-`C` values for `COLLATE` and
105+
`CTYPE` unless the config flag `allow_unsafe_locale`, found in the database section of
106+
the configuration file, is set to `true`. See the [PostgreSQL documentation](https://matrix-org.github.io/synapse/latest/postgres.html#fixing-incorrect-collate-or-ctype)
107+
for more information and instructions on how to fix a database with incorrect values.
108+
102109
# Upgrading to v1.55.0
103110

104111
## `synctl` script has been moved

0 commit comments

Comments
 (0)