Skip to content

Commit b25a9de

Browse files
committed
SSPG to FSPG Online migration pre-reqs update
1 parent 1d6415a commit b25a9de

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ Before you start your migration with migration service in Azure Database for Pos
1717

1818
Source PostgreSQL version should be `>= 9.5`. If the source PostgreSQL version is less than `9.5`, upgrade the source PostgreSQL version to `9.5` or higher before migration.
1919

20-
### Target setup
21-
22-
- Azure Database for PostgreSQL must be set up in Azure before migration.
23-
24-
- The SKU chosen for the Azure Database for PostgreSQL should correspond with the specifications of the source database to ensure compatibility and adequate performance.
25-
26-
- For detailed instructions on creating a new Azure Database for PostgreSQL, refer to the following link: [Quickstart: Create server](/azure/postgresql/flexible-server/).
27-
2820
### Set up Online migration parameters
2921

3022
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:
@@ -33,11 +25,21 @@ For Online migration, the replication support should be set to Logical under rep
3325
- ALTER SYSTEM SET max_wal_senders = `number of databases to migrate`;
3426
- ALTER SYSTEM SET max_replication_slots = `number of databases to migrate`;
3527

36-
You'll need to restart the source PostgreSQL server after completing all the Online migration prerequisites.
28+
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.
3729

3830
> [!NOTE]
3931
> For online migration with Azure Database for PostgreSQL single server, the Azure replication support is set to logical under the replication settings of the single server page in the Azure portal.
4032
33+
### Target setup
34+
35+
- Azure Database for PostgreSQL must be set up in Azure before migration.
36+
37+
- The SKU chosen for the Azure Database for PostgreSQL should correspond with the specifications of the source database to ensure compatibility and adequate performance.
38+
39+
- For detailed instructions on creating a new Azure Database for PostgreSQL, refer to the following link: [Quickstart: Create server](/azure/postgresql/flexible-server/).
40+
41+
- The `pg_replication_origin` parameter on the target should be at least (1 + `number of databases to migrate`) onto the target.
42+
4143
### Network setup
4244

4345
Proper networking setup is essential to ensure successful connectivity between the source and target during migration. Here's a guide to help you establish the network connection for different scenarios:

0 commit comments

Comments
 (0)