You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -22,19 +22,17 @@ Replication slots can be created with the `failover` flag, which ensures that re
22
22
23
23
## Configuring advanced settings and user rights
24
24
25
-
As the service uses physical replication to provide High Availability, some parameters must be enabled to allow the logical replication to remain active after the promotion of a secondary node, without disturbing the HA setup. It is essential to ensure these setting are enabled as even Database Instances with in standalone mode can be replaced with temporary replicas.
26
-
27
-
The [replication slot](https://www.postgresql.org/docs/17/logicaldecoding-explanation.html#LOGICALDECODING-REPLICATION-SLOTS) is an important part of the logical replication. Each subscription receives changes via one replication slot created on the "publishing" node. You have one replication slot available per logical database.
28
-
29
-
To use replication, users must also have the corresponding rights.
25
+
As the service uses physical replication to provide High Availability, some advanced settings must be enabled to allow the logical replication to remain active after the promotion of a secondary node, without disturbing the HA setup. It is essential to ensure these settings are enabled as even Database Instances with in standalone mode can be replaced with temporary replicas.
30
26
31
27
Follow the steps in the [How to configure advanced settings](/managed-databases-for-postgresql-and-mysql/how-to/configure-advanced-settings) documentation page to configure the following settings:
32
28
33
29
To enable logical replication, you must:
34
30
35
31
- Enable the `rdb.enable_logical_replication` setting. This automatically changes the `wal_level` settings to `logical`.
36
32
- Set `hot_standby_feedback` to `ON`
37
-
- Set `sync_replication_slots` to `ON`
33
+
- Set `sync_replication_slots` to `ON`- [replication slots](https://www.postgresql.org/docs/17/logicaldecoding-explanation.html#LOGICALDECODING-REPLICATION-SLOTS) is an important part of the logical replication. Each subscription receives changes via one replication slot created on the "publishing" node. You have one replication slot available per logical database.
34
+
35
+
To use replication, users must also have the corresponding rights.
38
36
39
37
Follow the steps in the [How to manage users](/managed-databases-for-postgresql-and-mysql/how-to/manage-users) documentation page to attribute user rights.
40
38
@@ -86,7 +84,7 @@ We use an example scenario to show how logical replication can be set up.
86
84
CREATE SUBSCRIPTION sub CONNECTION 'host=myhost port=myport user=myuser dbname=mydb password=mypassword' PUBLICATION pub WITH (enabled=true, create_slot=false, slot_name='sub');
87
85
```
88
86
<Messagetype="note">
89
-
Refer to the [PostgreSQL documentation](https://www.postgresql.org/docs/current/functions-admin.html#FUNCTIONS-REPLICATION) for more information about `pg_create_logical_replication_slot()`.
87
+
Refer to the official [PostgreSQL documentation](https://www.postgresql.org/docs/current/functions-admin.html#FUNCTIONS-REPLICATION) for more information about `pg_create_logical_replication_slot()`.
90
88
</Message>
91
89
</TabsTab>
92
90
</Tabs>
@@ -96,14 +94,18 @@ We use an example scenario to show how logical replication can be set up.
96
94
SELECT*FROM mytable;
97
95
```
98
96
97
+
<Messagetype="note">
98
+
Refer to the official [PostgreSQL documentation](https://www.postgresql.org/docs/current/logical-replication.html) for more information about logical replication.
99
+
</Message>
100
+
99
101
## Limitations
100
102
101
103
- 100 replication slots are available for each Database Instance.
102
104
- 25 out of the 100 slots are reserved for Scaleway's internal systems.
103
105
- During the synchronization phase, 2 or more slots might be needed for a subscription.
104
106
<Messagetype="important">
105
107
- If you need more than 50 replication slots, [create a support ticket](https://console.scaleway.com/support).
106
-
-If the limit is exceeded, your Managed Database service may become compromised.
108
+
-Exceeding this limit may cause the Instance's internal replication to fail.
@@ -38,7 +38,8 @@ New features are available with PostgreSQL 17:
38
38
39
39
These are the new advanced settings available with PostgreSQL 17:
40
40
41
-
-`allow_alter_system`
41
+
-`rdb.enable_logical_replication`
42
+
-`sync_replication_slots`
42
43
43
44
Refer to the official [Server configuration](https://www.postgresql.org/docs/17/runtime-config-compatible.html) PostgreSQL documentation for more information.
0 commit comments