Commit Graph

21 Commits

Author SHA1 Message Date
Slavi Pantaleev
8c4234d52a Add note about ANALYZE after Postgres database importing 2023-09-26 17:52:01 +03:00
Slavi Pantaleev
56b0706863 Fix default database name
For backward-compatibility reasons, this playbook uses `matrix` as its
main and default database.
2023-03-17 08:27:52 +02:00
Slavi Pantaleev
2b49ae79ca Use just for Postgres maintenance command examples 2023-03-16 11:23:22 +02:00
Slavi Pantaleev
7b43ef34b7 Remove more hardcoded matrix-postgres references 2022-11-27 09:16:18 +02:00
Slavi Pantaleev
e9993856a6 Fix typo 2022-10-06 13:23:48 +03:00
Slavi Pantaleev
8d40ddd654 Adjust importing-postgres docs to mention postgres_default_import_database 2022-10-06 13:22:52 +03:00
felixx9
d51a9118d3
Update importing-postgres.md with individual DB and repeat-import information (#1437)
* Update importing-postgres.md

Additional deatails, mostly on repeating import. Structure troubleshouting section.

* Update importing-postgres.md

removing -K

* Fix path typo

Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2021-12-05 10:41:00 +02:00
felixx9
c2c68f814b
Update importing-postgres.md
typos an suggestion to expand search/replace statement to not replace on wrong places.
2021-11-30 22:07:04 +01:00
Kim Brose
11b215f8ec
Fix typo 2021-09-23 21:39:42 +02:00
Slavi Pantaleev
02f4e8cf0d Remove no-longer accurate sentences 2021-08-31 10:07:58 +03:00
Slavi Pantaleev
519eef9e4b Remove unnecessary argument from Postgres import command
The default of using the `matrix` database is better anyway.
2021-08-02 10:08:30 +03:00
Slavi Pantaleev
88addd71fc Fix Postgres imports going to the matrix DB by default
Well, they still do go to that DB by default,
but our docs give a better command to users, which would do the right
thing.
2021-01-22 17:39:08 +02:00
Slavi Pantaleev
3273f023dc Fix Postgres importing guide
This fixes things to make them compatible
with the changes done in 95346f3117
2021-01-22 15:50:24 +02:00
Slavi Pantaleev
6e1dfb62f0 Rename some doc files and commands related to importing
Since we'll likely have generic SQLite database importing
via [pgloader](https://pgloader.io/) for migrating bridge
databases from SQLite to Postgres, we'd rather avoid
calling the "import Synapse SQLite database" command
as just `--tags=import-sqlite-db`.

Similarly, for the media store, we'd like to mention that it's
related to Synapse as well.

We'd like to be more explicit, so as to be less confusing,
especially in light of other homeserver implementations
coming in the future.
2020-12-14 01:51:00 +02:00
bertiebaggio
866d6fc1c9 Fix sed formatting 2020-07-13 15:12:17 +01:00
bertiebaggio
000b482d18 Add 'Troubleshooting' w/workaround for ownership
If a Postgres dump contains ALTER TABLE ... OWNER_TO <username>
statements which set the owner to a username different from
'synapse' the post Postgres import task will fail complaining
about lack of role.

Changing the matrix_postgres_connection_username group var has no
effect. However, the ALTER TABLE statements (and accompanying comments)
can be rewritten to change the username to 'synapse', which permits the
import task to succeed.

From a sample of 1, having the owner set in this was causes no
discernable side effects on the homeserver.
2020-07-13 15:03:24 +01:00
Slavi Pantaleev
29526e7bb1 Add support for backing up / importing all Postgres databases/users 2019-10-05 11:42:08 +03:00
Slavi Pantaleev
892abdc700 Do not refer to Synapse as "Matrix Synapse" 2019-04-23 10:20:56 +03:00
Slavi Pantaleev
76506f34e0 Make media-store restore work with server files, not local
This is a simplification and a way to make it consistent with
how we do Postgres imports (see 6d89319822), using
files coming from the server, not from the local machine.

By encouraging people NOT to use local files,
we potentially avoid problems such as #34 (Github issue),
where people would download `media_store` to their Mac's filesystem
and case-sensitivity issues will actually corrupt it.

By not encouraging local files usage, it's less likely that
people would copy (huge) directories to their local machine like that.
2019-01-01 15:57:50 +02:00
Slavi Pantaleev
543b98d24c Update documentation 2019-01-01 15:35:33 +02:00
Slavi Pantaleev
6d89319822 Add support for importing an existing Postgres database 2019-01-01 14:45:37 +02:00