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

Commit

Permalink
Mention the new behaviour on unsafe database locale in the upgrade no…
Browse files Browse the repository at this point in the history
…tes (#12288)

Co-authored-by: Shay <hillerys@element.io>
  • Loading branch information
babolivier and H-Shay committed Mar 25, 2022
1 parent 8b7b371 commit 5859e2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/12288.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Refuse to start if DB has non-`C` locale, unless config flag `allow_unsafe_db_locale` is set to true.
7 changes: 7 additions & 0 deletions docs/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ experimental_features:
groups_enabled: false
```

## Change in behaviour for PostgreSQL databases with unsafe locale

Synapse now refuses to start when using PostgreSQL with non-`C` values for `COLLATE` and
`CTYPE` unless the config flag `allow_unsafe_locale`, found in the database section of
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)
for more information and instructions on how to fix a database with incorrect values.

# Upgrading to v1.55.0

## `synctl` script has been moved
Expand Down

0 comments on commit 5859e2f

Please sign in to comment.