diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-04-29 11:58:06 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-04-29 11:58:06 +0100 |
commit | 9894da6a29ce7f26d99c8cffdb5085fa8e7d9310 (patch) | |
tree | d44b344fcb834a13bcece99273a619f3841da336 /docs/postgres.rst | |
parent | Appease PEP8 (diff) | |
parent | Mention that postgres databases must have the correct charset encoding (diff) | |
download | synapse-9894da6a29ce7f26d99c8cffdb5085fa8e7d9310.tar.xz |
Merge branch 'develop' into erikj/postgres_charset_check
Diffstat (limited to 'docs/postgres.rst')
-rw-r--r-- | docs/postgres.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/postgres.rst b/docs/postgres.rst index a04ab12b1a..d645e1d697 100644 --- a/docs/postgres.rst +++ b/docs/postgres.rst @@ -1,6 +1,23 @@ 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 ============= |