diff --git a/self-hosting/installation/powersync-service-setup.mdx b/self-hosting/installation/powersync-service-setup.mdx index 3a7886ef..f658fcb2 100644 --- a/self-hosting/installation/powersync-service-setup.mdx +++ b/self-hosting/installation/powersync-service-setup.mdx @@ -173,10 +173,6 @@ client_auth: ``` - -**Important:** When using Postgres for sync bucket storage, a separate server is currently required for replication connections (if using Postgres for replication) and storage. Using the same server might cause unexpected results. - - Specify the connection to Postgres in the `replication` section. Retrieving your database connection string / individual parameters differs by database hosting provider. See [Database Connection](/self-hosting/appendix/database-connection) for further details. @@ -189,6 +185,15 @@ Specify the connection to Postgres in the `replication` section. Retrieving your Specify the connection to your sync bucket storage provider (Postgres or MongoDB) in the `storage` section. +### Postgres Storage + +Separate Postgres servers are required for replication connections and sync bucket storage **if using PostgreSQL versions below 14**. + +| PostgreSQL Version | Server configuration | +| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Below 14 | Separate servers are required for the source and sync bucket storage. Replication will be blocked if the same server is detected. | +| 14 and above | The source database and sync bucket storage database can be on the same server. Using the same database (with separate schemas) is supported but may lead to higher CPU usage. Using separate servers remains an option. | + ### Environment Variables The config file uses custom tags for environment variable substitution.