summary refs log tree commit diff
path: root/develop/postgres.html
diff options
context:
space:
mode:
authorDMRobertson <DMRobertson@users.noreply.github.com>2022-03-04 11:59:19 +0000
committerDMRobertson <DMRobertson@users.noreply.github.com>2022-03-04 11:59:19 +0000
commit7fd04745875bfa90c2a24a07bb9bb5dc40efb0be (patch)
tree4b57d6e098b5c046dcff995384202fe8dc0a7e5d /develop/postgres.html
parentdeploy: 1fbe0316a991e77289d4577b16ff3fcd27c26dc8 (diff)
downloadsynapse-7fd04745875bfa90c2a24a07bb9bb5dc40efb0be.tar.xz
deploy: 4aeb00ca20a0d9dbb2a104591aca081c723eb6d9
Diffstat (limited to 'develop/postgres.html')
-rw-r--r--develop/postgres.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/develop/postgres.html b/develop/postgres.html

index e1b4ed6cd7..240ea588fc 100644 --- a/develop/postgres.html +++ b/develop/postgres.html
@@ -309,9 +309,9 @@ space on disk after porting to Postgres.</p> <p>Firstly, shut down the currently running synapse server and copy its database file (typically <code>homeserver.db</code>) to another location. Once the copy is complete, restart synapse. For instance:</p> -<pre><code class="language-sh">./synctl stop +<pre><code class="language-sh">synctl stop cp homeserver.db homeserver.db.snapshot -./synctl start +synctl start </code></pre> <p>Copy the old config file into a new config file:</p> <pre><code class="language-sh">cp homeserver.yaml homeserver-postgres.yaml @@ -334,10 +334,10 @@ run:</p> </code></pre> <p>Once that has completed, change the synapse config to point at the PostgreSQL database configuration file <code>homeserver-postgres.yaml</code>:</p> -<pre><code class="language-sh">./synctl stop +<pre><code class="language-sh">synctl stop mv homeserver.yaml homeserver-old-sqlite.yaml mv homeserver-postgres.yaml homeserver.yaml -./synctl start +synctl start </code></pre> <p>Synapse should now be running against PostgreSQL.</p> <h2 id="troubleshooting"><a class="header" href="#troubleshooting">Troubleshooting</a></h2>