Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
b50f1817
Unverified
Commit
b50f1817
authored
6 years ago
by
Bruno Pagani
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
doc/postgres.rest: fix displaying of the last command block
Also indent all of them with 4 spaces.
parent
e7363519
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/postgres.rst
+9
-9
9 additions, 9 deletions
docs/postgres.rst
with
9 additions
and
9 deletions
docs/postgres.rst
+
9
−
9
View file @
b50f1817
...
@@ -9,19 +9,19 @@ Set up database
...
@@ -9,19 +9,19 @@ Set up database
Assuming your PostgreSQL database user is called ``postgres``, create a user
Assuming your PostgreSQL database user is called ``postgres``, create a user
``synapse_user`` with::
``synapse_user`` with::
su - postgres
su - postgres
createuser --pwprompt synapse_user
createuser --pwprompt synapse_user
The PostgreSQL database used *must* have the correct encoding set, otherwise it
The PostgreSQL database used *must* have the correct encoding set, otherwise it
would not be able to store UTF8 strings. To create a database with the correct
would not be able to store UTF8 strings. To create a database with the correct
encoding use, e.g.::
encoding use, e.g.::
CREATE DATABASE synapse
CREATE DATABASE synapse
ENCODING 'UTF8'
ENCODING 'UTF8'
LC_COLLATE='C'
LC_COLLATE='C'
LC_CTYPE='C'
LC_CTYPE='C'
template=template0
template=template0
OWNER synapse_user;
OWNER synapse_user;
This would create an appropriate database named ``synapse`` owned by the
This would create an appropriate database named ``synapse`` owned by the
``synapse_user`` user (which must already exist).
``synapse_user`` user (which must already exist).
...
@@ -126,7 +126,7 @@ run::
...
@@ -126,7 +126,7 @@ run::
--postgres-config homeserver-postgres.yaml
--postgres-config homeserver-postgres.yaml
Once that has completed, change the synapse config to point at the PostgreSQL
Once that has completed, change the synapse config to point at the PostgreSQL
database configuration file ``homeserver-postgres.yaml``:
database configuration file ``homeserver-postgres.yaml``:
:
./synctl stop
./synctl stop
mv homeserver.yaml homeserver-old-sqlite.yaml
mv homeserver.yaml homeserver-old-sqlite.yaml
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment