Skip to content

Commit 1472757

Browse files
fix(rdb): reviews
1 parent 8e5babd commit 1472757

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

pages/managed-databases-for-postgresql-and-mysql/api-cli/logical-replication-as-publisher.mdx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Setting up logical replication as a publisher in PostgreSQL
33
description: Learn how to set up and use logical replication as a publisher in PostgreSQL
4-
tags: postgresql logical replication publisher publication database
4+
tags: postgresql logical replication publisher publication database
55
dates:
66
validation: 2025-08-25
77
posted: 2025-02-20
@@ -22,19 +22,17 @@ Replication slots can be created with the `failover` flag, which ensures that re
2222

2323
## Configuring advanced settings and user rights
2424

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.
3026

3127
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:
3228

3329
To enable logical replication, you must:
3430

3531
- Enable the `rdb.enable_logical_replication` setting. This automatically changes the `wal_level` settings to `logical`.
3632
- 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.
3836

3937
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.
4038

@@ -86,7 +84,7 @@ We use an example scenario to show how logical replication can be set up.
8684
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');
8785
```
8886
<Message type="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()`.
9088
</Message>
9189
</TabsTab>
9290
</Tabs>
@@ -96,14 +94,18 @@ We use an example scenario to show how logical replication can be set up.
9694
SELECT * FROM mytable;
9795
```
9896

97+
<Message type="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+
99101
## Limitations
100102

101103
- 100 replication slots are available for each Database Instance.
102104
- 25 out of the 100 slots are reserved for Scaleway's internal systems.
103105
- During the synchronization phase, 2 or more slots might be needed for a subscription.
104106
<Message type="important">
105107
- 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.
107109
</Message>
108110

109111
<Message type="tip">

pages/managed-databases-for-postgresql-and-mysql/reference-content/pg-version-updates.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ New features are available with PostgreSQL 17:
2929
### Extensions
3030

3131
- **PostGIS** - [3.5](https://postgis.net/tags/3.5/)
32-
- **Timescale** - [2.2](https://github.com/timescale/timescaledb/releases/tag/2.21.4)
32+
- **Timescale** - [2.2](https://github.com/timescale/timescaledb/releases/tag/2.22.1)
3333
- **pgRouting** - [3.7.3](https://github.com/pgRouting/pgrouting/releases/tag/v3.7.3)
3434
- **pgvector** - [0.8.1](https://github.com/pgvector/pgvector/releases/tag/v0.8.1)
3535
- **H3 PG** - [4.2.3](https://github.com/zachasme/h3-pg/releases/tag/v4.2.3)
@@ -38,7 +38,8 @@ New features are available with PostgreSQL 17:
3838

3939
These are the new advanced settings available with PostgreSQL 17:
4040

41-
- `allow_alter_system`
41+
- `rdb.enable_logical_replication`
42+
- `sync_replication_slots`
4243

4344
Refer to the official [Server configuration](https://www.postgresql.org/docs/17/runtime-config-compatible.html) PostgreSQL documentation for more information.
4445

0 commit comments

Comments
 (0)