Skip to content

Commit 128d75d

Browse files
authored
Raising acrolinx
1 parent 81316c7 commit 128d75d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/postgresql/flexible-server/concepts-logical.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ Logical decoding:
4949
```SQL
5050
ALTER ROLE <adminname> WITH REPLICATION;
5151
```
52-
8. You may want to make sure the role you are using has [privileges](https://www.postgresql.org/docs/current/sql-grant.html) on the schema that you're replicating. Otherwise, you may run into errors such as `Permission denied for schema`.
52+
8. You may want to make sure the role you're using has [privileges](https://www.postgresql.org/docs/current/sql-grant.html) on the schema that you're replicating. Otherwise, you may run into errors such as `Permission denied for schema`.
5353

5454

5555
>[!NOTE]
56-
> It is always a good practice to separate your replication user from regular admin account.
56+
> It's always a good practice to separate your replication user from regular admin account.
5757
5858
## Using logical replication and logical decoding
5959

@@ -92,7 +92,7 @@ Here's some sample code you can use to try out logical replication.
9292
```
9393
You can add more rows to the publisher's table and view the changes on the subscriber.
9494

95-
If you are not able to see the data, enable the login privilege for `azure_pg_admin` and check the table content.
95+
If you're not able to see the data, enable the login privilege for `azure_pg_admin` and check the table content.
9696
```SQL
9797
ALTER ROLE azure_pg_admin login;
9898
```
@@ -221,7 +221,7 @@ In the example below, we use the SQL interface with the wal2json plugin.
221221
}
222222
```
223223

224-
4. Drop the slot once you are done using it.
224+
4. Drop the slot once you're done using it.
225225
```SQL
226226
SELECT pg_drop_replication_slot('test_slot');
227227
```
@@ -230,17 +230,17 @@ Visit the PostgreSQL documentation to understand more about [logical decoding](h
230230

231231

232232
## Monitoring
233-
You must monitor logical decoding. Any unused replication slot must be dropped. Slots hold on to Postgres WAL logs and relevant system catalogs until changes have been read. If your subscriber or consumer fails or if it is improperly configured, the unconsumed logs will pile up and fill your storage. Also, unconsumed logs increase the risk of transaction ID wraparound. Both situations can cause the server to become unavailable. Therefore, it is critical that logical replication slots are consumed continuously. If a logical replication slot is no longer used, drop it immediately.
233+
You must monitor logical decoding. Any unused replication slot must be dropped. Slots hold on to Postgres WAL logs and relevant system catalogs until changes have been read. If your subscriber or consumer fails or if it's improperly configured, the unconsumed logs will pile up and fill your storage. Also, unconsumed logs increase the risk of transaction ID wraparound. Both situations can cause the server to become unavailable. Therefore, it's critical that logical replication slots are consumed continuously. If a logical replication slot is no longer used, drop it immediately.
234234

235-
The 'active' column in the pg_replication_slots view will indicate whether there is a consumer connected to a slot.
235+
The 'active' column in the pg_replication_slots view will indicate whether there's a consumer connected to a slot.
236236
```SQL
237237
SELECT * FROM pg_replication_slots;
238238
```
239239
[Set alerts](howto-alert-on-metrics.md) on the **Maximum Used Transaction IDs** and **Storage Used** flexible server metrics to notify you when the values increase past normal thresholds.
240240

241241
## Limitations
242242
* **Logical replication** limitations apply as documented [here](https://www.postgresql.org/docs/current/logical-replication-restrictions.html).
243-
* **Slots and HA failover** - Logical replication slots on the primary server are not available on the standby server in your secondary AZ. This situation applies to you if your server uses the zone-redundant high availability option. In the event of a failover to the standby server, logical replication slots will not be available on the standby.
243+
* **Slots and HA failover** - Logical replication slots on the primary server aren't available on the standby server in your secondary AZ. This situation applies to you if your server uses the zone-redundant high availability option. In the event of a failover to the standby server, logical replication slots won't be available on the standby.
244244

245245
>[!IMPORTANT]
246246
> You must drop the logical replication slot in the primary server if the corresponding subscriber no longer exists. Otherwise the WAL files start to get accumulated in the primary filling up the storage. If the storage threshold exceeds certain threshold and if the logical replication slot is not in use (due to non-available subscriber), Flexible server automatically drops that unused logical replication slot. That action releases accumulated WAL files and avoids your server becoming unavailable due to storage getting filled situation.

0 commit comments

Comments
 (0)