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
Copy file name to clipboardExpand all lines: articles/dms/tutorial-postgresql-azure-postgresql-online.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.service: dms
10
10
ms.workload: data-services
11
11
ms.custom: mvc, tutorial
12
12
ms.topic: article
13
-
ms.date: 05/08/2019
13
+
ms.date: 06/28/2019
14
14
---
15
15
16
16
# Tutorial: Migrate PostgreSQL to Azure Database for PostgreSQL online using DMS
@@ -19,6 +19,7 @@ You can use Azure Database Migration Service to migrate the databases from an on
19
19
20
20
In this tutorial, you learn how to:
21
21
> [!div class="checklist"]
22
+
>
22
23
> * Migrate the sample schema using pg_dump utility.
23
24
> * Create an instance of the Azure Database Migration Service.
24
25
> * Create a migration project by using the Azure Database Migration Service.
@@ -60,21 +61,21 @@ To complete this tutorial, you need to:
60
61
* Create a server-level [firewall rule](https://docs.microsoft.com/azure/sql-database/sql-database-firewall-configure) for Azure Database for PostgreSQL to allow Azure Database Migration Service to access to the target databases. Provide the subnet range of the VNet used for Azure Database Migration Service.
61
62
* There are two methods for invoking the CLI:
62
63
63
-
* In the upper-right corner of the Azure postal, select the Cloud Shell button:
64
+
* In the upper-right corner of the Azure postal, select the Cloud Shell button:
64
65
65
66

66
67
67
-
* Install and run the CLI locally. CLI 2.0 is the command-line tool for managing Azure resources.
68
+
* Install and run the CLI locally. CLI 2.0 is the command-line tool for managing Azure resources.
68
69
69
70
To download the CLI, follow the instructions in the article [Install Azure CLI 2.0](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest). The article also lists the platforms that support CLI 2.0.
70
71
71
72
To set up Windows Subsystem for Linux (WSL), follow the instructions in the [Windows 10 Installation Guide](https://docs.microsoft.com/windows/wsl/install-win10)
72
73
73
74
* Enable logical replication in the postgresql.config file, and set the following parameters:
74
75
75
-
* wal_level = **logical**
76
-
* max_replication_slots = [number of slots], recommend setting to **5 slots**
77
-
* max_wal_senders =[number of concurrent tasks] - The max_wal_senders parameter sets the number of concurrent tasks that can run, recommend setting to **10 tasks**
76
+
* wal_level = **logical**
77
+
* max_replication_slots = [number of slots], recommend setting to **5 slots**
78
+
* max_wal_senders =[number of concurrent tasks] - The max_wal_senders parameter sets the number of concurrent tasks that can run, recommend setting to **10 tasks**
78
79
79
80
## Migrate the sample schema
80
81
@@ -110,8 +111,7 @@ To complete all the database objects like table schemas, indexes and stored proc
110
111
```
111
112
112
113
4. If you have foreign keys in your schema, the initial load and continuous sync of the migration will fail. Execute the following script in PgAdmin or in psql to extract the drop foreign key script and add foreign key script at the destination (Azure Database for PostgreSQL).
Copy file name to clipboardExpand all lines: articles/dms/tutorial-rds-postgresql-server-azure-db-for-postgresql-online.md
+23-15Lines changed: 23 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.service: dms
10
10
ms.workload: data-services
11
11
ms.custom: mvc, tutorial
12
12
ms.topic: article
13
-
ms.date: 05/08/2019
13
+
ms.date: 06/28/2019
14
14
---
15
15
16
16
# Tutorial: Migrate RDS PostgreSQL to Azure Database for PostgreSQL online using DMS
@@ -99,23 +99,31 @@ To complete this tutorial, you need to:
99
99
```
100
100
101
101
4. If you have foreign keys in your schema, the initial load and continuous sync of the migration will fail. To extract the drop foreign key script and add foreign key script at the destination (Azure Database for PostgreSQL), run the following script in PgAdmin or in psql:
102
-
102
+
103
103
```
104
-
SET group_concat_max_len = 8192;
105
-
SELECT SchemaName, GROUP_CONCAT(DropQuery SEPARATOR ';\n') as DropQuery, GROUP_CONCAT(AddQuery SEPARATOR ';\n') as AddQuery
0 commit comments