Skip to content

Commit b92b582

Browse files
update Postgres bucket storage server limitations (#103)
1 parent 0fcf74d commit b92b582

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

self-hosting/installation/powersync-service-setup.mdx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,6 @@ client_auth:
173173

174174
```
175175

176-
<Info>
177-
**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.
178-
</Info>
179-
180176
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.
181177

182178
<Info>
@@ -189,6 +185,15 @@ Specify the connection to Postgres in the `replication` section. Retrieving your
189185

190186
Specify the connection to your sync bucket storage provider (Postgres or MongoDB) in the `storage` section.
191187

188+
### Postgres Storage
189+
190+
Separate Postgres servers are required for replication connections and sync bucket storage **if using PostgreSQL versions below 14**.
191+
192+
| PostgreSQL Version | Server configuration |
193+
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
194+
| Below 14 | Separate servers are required for the source and sync bucket storage. Replication will be blocked if the same server is detected. |
195+
| 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. |
196+
192197
### Environment Variables
193198

194199
The config file uses custom tags for environment variable substitution.

0 commit comments

Comments
 (0)