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/data-factory/connector-azure-database-for-postgresql.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Copy data to and from Azure Database for PostgreSQL using Azure Data Factory | Microsoft Docs
3
-
description: Learn how to copy data to and from Azure Database for PostgreSQL by using a copy activity in an Azure Data Factory pipeline.
3
+
description: Learn how to copy data to and from Azure Database for PostgreSQL by using a Copy activity in an Azure Data Factory pipeline.
4
4
services: data-factory
5
5
documentationcenter: ''
6
6
author: linda33wj
@@ -18,18 +18,18 @@ ms.author: jingwang
18
18
---
19
19
# Copy data to and from Azure Database for PostgreSQL by using Azure Data Factory
20
20
21
-
This article describes how to use the Copy Activity feature in Azure Data Factory to copy data from Azure Database for PostgreSQL. It builds on the [copy activity overview](copy-activity-overview.md) article that presents a general overview of Copy Activity.
21
+
This article describes how to use the Copy activity feature in Azure Data Factory to copy data from Azure Database for PostgreSQL. It builds on the [Copy activity in Azure Data Factory](copy-activity-overview.md) article, which presents a general overview of Copy activity.
22
22
23
23
This connector is specialized for the [Azure Database for PostgreSQL service](../postgresql/overview.md). To copy data from a generic PostgreSQL database located on-premises or in the cloud, use the [PostgreSQL connector](connector-postgresql.md).
24
24
25
25
## Supported capabilities
26
26
27
27
This Azure Database for PostgreSQL connector is supported for the following activities:
28
28
29
-
-[Copy activity](copy-activity-overview.md) with [supported source/sink matrix](copy-activity-overview.md)
29
+
-[Copy activity](copy-activity-overview.md) with a [supported source/sink matrix](copy-activity-overview.md)
You can copy data from Azure Database for PostgreSQL to any supported sink data store. Or, you can copy data from any supported source data store to Azure Database for PostgreSQL. For a list of data stores that are supported as sources and sinks by the copy activity, see the [Supported data stores](copy-activity-overview.md#supported-data-stores-and-formats) table.
32
+
You can copy data from Azure Database for PostgreSQL to any supported sink data store. Or, you can copy data from any supported source data store to Azure Database for PostgreSQL. For a list of data stores that are supported as sources and sinks by the Copy activity, see the [Supported data stores](copy-activity-overview.md#supported-data-stores-and-formats) table.
33
33
34
34
Azure Data Factory provides a built-in driver to enable connectivity. Therefore, you don't need to manually install any driver to use this connector.
35
35
@@ -46,15 +46,15 @@ The following properties are supported for the Azure Database for PostgreSQL lin
46
46
| Property | Description | Required |
47
47
|:--- |:--- |:--- |
48
48
| type | The type property must be set to: **AzurePostgreSql**. | Yes |
49
-
| connectionString | An ODBC connection string to connect to Azure Database for PostgreSQL.<br/>Mark this field as a SecureString to store it securely in Data Factory. You can also put a password in Azure Key Vault and pull the `password` configuration out of the connection string. See the following samples and [Store credentials in Azure Key Vault](store-credentials-in-key-vault.md)article for more details. | Yes |
49
+
| connectionString | An ODBC connection string to connect to Azure Database for PostgreSQL.<br/>Mark this field as a SecureString to store it securely in Data Factory. You can also put a password in Azure Key Vault and pull the `password` configuration out of the connection string. See the following samples and [Store credentials in Azure Key Vault](store-credentials-in-key-vault.md) for more details. | Yes |
50
50
| connectVia | This property represents the [integration runtime](concepts-integration-runtime.md) to be used to connect to the data store. You can use Azure Integration Runtime or Self-hosted Integration Runtime (if your data store is located in private network). If not specified, it uses the default Azure Integration Runtime. |No |
51
51
52
52
A typical connection string is `Server=<server>.postgres.database.azure.com;Database=<database>;Port=<port>;UID=<username>;Password=<Password>`. Here are more properties you can set per your case:
53
53
54
54
| Property | Description | Options | Required |
55
55
|:--- |:--- |:--- |:--- |
56
56
| EncryptionMethod (EM)| The method the driver uses to encrypt data sent between the driver and the database server. For example, `EncryptionMethod=<0/1/6>;`| 0 (No Encryption) **(Default)** / 1 (SSL) / 6 (RequestSSL) | No |
57
-
| ValidateServerCertificate (VSC) | Determines whether the driver validates the certificate that's sent by the database server when SSL encryption is enabled (Encryption Method=1). E.g., `ValidateServerCertificate=<0/1>;`| 0 (Disabled) **(Default)** / 1 (Enabled) | No |
57
+
| ValidateServerCertificate (VSC) | Determines whether the driver validates the certificate that's sent by the database server when SSL encryption is enabled (Encryption Method=1). For example, `ValidateServerCertificate=<0/1>;`| 0 (Disabled) **(Default)** / 1 (Enabled) | No |
58
58
59
59
**Example**:
60
60
@@ -100,7 +100,7 @@ A typical connection string is `Server=<server>.postgres.database.azure.com;Data
100
100
101
101
## Dataset properties
102
102
103
-
For a full list of sections and properties available for defining datasets, see the [datasets](concepts-datasets-linked-services.md) article. This section provides a list of properties that are supported by Azure Database for PostgreSQL dataset.
103
+
For a full list of sections and properties available for defining datasets, see [Datasets in Azure Data Factory](concepts-datasets-linked-services.md). This section provides a list of properties that are supported by Azure Database for PostgreSQL dataset.
104
104
105
105
To copy data from Azure Database for PostgreSQL, set the type property of the dataset to **AzurePostgreSqlTable**. The following properties are supported:
106
106
@@ -127,16 +127,16 @@ To copy data from Azure Database for PostgreSQL, set the type property of the da
127
127
128
128
## Copy activity properties
129
129
130
-
For a full list of sections and properties available for defining activities, see the [Pipelines](concepts-pipelines-activities.md) article. This section provides a list of properties supported by Azure Database for PostgreSQL source.
130
+
For a full list of sections and properties available for defining activities, see [Pipelines and activities in Azure Data Factory](concepts-pipelines-activities.md). This section provides a list of properties supported by Azure Database for PostgreSQL source.
131
131
132
132
### Azure Database for PostgreSql as source
133
133
134
-
To copy data from Azure Database for PostgreSQL, set the source type in the copy activity to **AzurePostgreSqlSource**. The following properties are supported in the copy activity **source** section:
134
+
To copy data from Azure Database for PostgreSQL, set the source type in the Copy activity to **AzurePostgreSqlSource**. The following properties are supported in the Copy activity **source** section:
135
135
136
136
| Property | Description | Required |
137
137
|:--- |:--- |:--- |
138
-
| type | The type property of the copy activity source must be set to **AzurePostgreSqlSource**| Yes |
139
-
| query | Use the custom SQL query to read data. For example: `"SELECT * FROM MyTable"`| No (if "tableName" in dataset is specified) |
138
+
| type | The type property of the Copy activity source must be set to **AzurePostgreSqlSource**| Yes |
139
+
| query | Use the custom SQL query to read data. For example: `"SELECT * FROM MyTable"`| No (if the tableName property in the dataset is specified) |
140
140
141
141
**Example:**
142
142
@@ -172,12 +172,12 @@ To copy data from Azure Database for PostgreSQL, set the source type in the copy
172
172
173
173
### Azure Database for PostgreSQL as sink
174
174
175
-
To copy data to Azure Database for PostgreSQL, the following properties are supported in the copy activity **sink** section:
175
+
To copy data to Azure Database for PostgreSQL, the following properties are supported in the Copy activity **sink** section:
176
176
177
177
| Property | Description | Required |
178
178
|:--- |:--- |:--- |
179
-
| type | The type property of the copy activity sink must be set to **AzurePostgreSQLSink**. | Yes |
180
-
| preCopyScript | Specify a SQL query for the copy activity to execute before you write data into Azure Database for PostgreSQL in each run. You can use this property to clean up the preloaded data. | No |
179
+
| type | The type property of the Copy activity sink must be set to **AzurePostgreSQLSink**. | Yes |
180
+
| preCopyScript | Specify a SQL query for the Copy activity to execute before you write data into Azure Database for PostgreSQL in each run. You can use this property to clean up the preloaded data. | No |
181
181
| writeBatchSize | Inserts data into the Azure Database for PostgreSQL table when the buffer size reaches writeBatchSize.<br>Allowed value is an integer that represents the number of rows. | No (default is 10,000) |
182
182
| writeBatchTimeout | Wait time for the batch insert operation to complete before it times out.<br>Allowed values are Timespan strings. An example is 00:30:00 (30 minutes). | No (default is 00:00:30) |
183
183
@@ -216,7 +216,7 @@ To copy data to Azure Database for PostgreSQL, the following properties are supp
216
216
217
217
## Lookup activity properties
218
218
219
-
For more details about the properties, see [Lookup activity](control-flow-lookup-activity.md).
219
+
For more information about the properties, see [Lookup activity in Azure Data Factory](control-flow-lookup-activity.md).
220
220
221
221
## Next steps
222
-
For a list of data stores supported as sources and sinks by the copy activity in Azure Data Factory, see [supported data stores](copy-activity-overview.md#supported-data-stores-and-formats).
222
+
For a list of data stores supported as sources and sinks by the Copy activity in Azure Data Factory, see [Supported data stores](copy-activity-overview.md#supported-data-stores-and-formats).
0 commit comments