Skip to content

Commit ca9b28c

Browse files
committed
Replication slot update
1 parent 13a74d8 commit ca9b28c

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

articles/postgresql/migrate/migration-service/includes/prerequisites/prerequisites-migration-service-postgresql-online-single-server.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ Source PostgreSQL version should be `>= 9.5`. If the source PostgreSQL version i
1919

2020
### Set up Online migration parameters
2121

22-
For Online migration, the replication support should be set to Logical under replication settings of the source PostgreSQL server. In addition, the server parameters `max_wal_senders` and `max_replication_slots` values should be equal to the number of Databases that need to be migrated. They can also be configured in the command line using the following commands:
22+
For Online migration, the replication support should be set to Logical under replication settings of the source PostgreSQL server. In addition, the server parameters `max_wal_senders` and `max_replication_slots` values should be more than the number of Databases that need to be migrated. The parameters can be set in the Azure portal under **Settings->Server Parameters** or configured in the command line using the following commands:
2323

2424
- ALTER SYSTEM SET wal_level = logical;
25-
- ALTER SYSTEM SET max_wal_senders = `number of databases to migrate`;
26-
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate`;
25+
- ALTER SYSTEM SET max_wal_senders = `number of databases to migrate` + 1;
26+
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate` + 1;
2727

2828
Ensure that there are no **long running transactions**. Long running transactions don't allow creation of replication slots. The creation of a replication slot will succeed if all long running transactions are committed or rolled-back. You'll need to restart the source PostgreSQL server after completing all the Online migration prerequisites.
2929

@@ -38,7 +38,9 @@ Ensure that there are no **long running transactions**. Long running transaction
3838

3939
- For detailed instructions on creating a new Azure Database for PostgreSQL, refer to the following link: [Quickstart: Create server](/azure/postgresql/flexible-server/).
4040

41-
- The `pg_replication_origin` parameter on the target should be at least (1 + `number of databases to migrate`) onto the target.
41+
- The server parameter `max_replication_slots` should be more than the number of Databases that need to be migrated. It can be set in the Azure portal under **Settings->Server Parameters** or configured in the command line using the following command:
42+
43+
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate` + 1;
4244

4345
### Network setup
4446

articles/postgresql/migrate/migration-service/includes/prerequisites/prerequisites-migration-service-postgresql-online.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ Source PostgreSQL version should be `>= 9.5`. If the source PostgreSQL version i
1919

2020
### Set up Online migration parameters
2121

22-
For Online migration, the replication support should be set to Logical under replication settings of the source PostgreSQL server. In addition, the server parameters `max_wal_senders` and `max_replication_slots` values should be equal to the number of Databases that need to be migrated. They can also be configured in the command line using the following commands:
22+
For Online migration, the replication support should be set to Logical under replication settings of the source PostgreSQL server. In addition, the server parameters `max_wal_senders` and `max_replication_slots` values should be more than the number of Databases that need to be migrated. The parameters can be set in the Azure portal under **Settings->Server Parameters** or configured in the command line using the following commands:
2323

2424
- ALTER SYSTEM SET wal_level = logical;
25-
- ALTER SYSTEM SET max_wal_senders = `number of databases to migrate`;
26-
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate`;
25+
- ALTER SYSTEM SET max_wal_senders = `number of databases to migrate` + 1;
26+
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate` + 1;
2727

2828
Ensure that there are no **long running transactions**. Long running transactions don't allow creation of replication slots. The creation of a replication slot will succeed if all long running transactions are committed or rolled-back. You'll need to restart the source PostgreSQL server after completing all the Online migration prerequisites.
2929

@@ -38,7 +38,9 @@ Ensure that there are no **long running transactions**. Long running transaction
3838

3939
- For detailed instructions on creating a new Azure Database for PostgreSQL, refer to the following link: [Quickstart: Create server](/azure/postgresql/flexible-server/).
4040

41-
- The `pg_replication_origin` parameter on the target should be at least (1 + `number of databases to migrate`) onto the target.
41+
- The server parameter `max_replication_slots` should be more than the number of Databases that need to be migrated. It can be set in the Azure portal under **Settings->Server Parameters** or configured in the command line using the following command:
42+
43+
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate` + 1;
4244

4345
### Network setup
4446

0 commit comments

Comments
 (0)