mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Mention that postgres databases must have the correct charset encoding
This commit is contained in:
parent
f4c9ebbc34
commit
72443572bf
@ -1,6 +1,23 @@
|
|||||||
Using Postgres
|
Using Postgres
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
Set up database
|
||||||
|
===============
|
||||||
|
|
||||||
|
The PostgreSQL database used *must* have the correct encoding set, otherwise
|
||||||
|
would not be able to store UTF8 strings. To create a database with the correct
|
||||||
|
encoding use, e.g.::
|
||||||
|
|
||||||
|
CREATE DATABASE synapse
|
||||||
|
ENCODING 'UTF8'
|
||||||
|
LC_COLLATE='C'
|
||||||
|
LC_CTYPE='C'
|
||||||
|
template=template0
|
||||||
|
OWNER synapse_user;
|
||||||
|
|
||||||
|
This would create an appropriate database named ``synapse`` owned by the
|
||||||
|
``synapse_user`` user (which must already exist).
|
||||||
|
|
||||||
Set up client
|
Set up client
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user