Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article outlines how to use the copy activity in data pipelines to copy data from PostgreSQL.
For the configuration of each tab under copy activity, go to the following sections respectively.
Refer to the General settings guidance to configure the General settings tab.
Go to Source tab to configure your copy activity source. See the following content for the detailed configuration.
The following three properties are required:
If you select Table:
Table: Specify the name of the table to read data. Select the table from the drop-down list or select Enter manually to enter it.
If you select Query:
Query: Specify the custom SQL query to read data.
Note
Schema and table names are case-sensitive. Enclose them in "" (double quotes) in the query.
Under Advanced, you can specify the following fields:
For Mapping tab configuration, see Configure your mappings under mapping tab.
For Settings tab configuration, go to Configure your other settings under settings tab.
The following table contains more information about the copy activity in PostgreSQL.
Name | Description | Value | Required | JSON script property |
---|---|---|---|---|
Connection | Your connection to the source data store. | < your PostgreSQL connection > | Yes | connection |
Connection type | Your source connection type. | PostgreSQL | Yes | / |
Use query | The way to read data. Apply Table to read data from the specified table or apply Query to read data using SQL queries. | • Table • Query |
Yes | • typeProperties (under typeProperties -> source )- schema - table • query |
Query timeout (minutes) | The wait time before terminating the attempt to execute a command and generating an error, default is 120 minutes. If parameter is set for this property, allowed values are timespan, such as "02:00:00" (120 minutes). For more information, see CommandTimeout. | timespan | No | queryTimeout |
Additional columns | Add additional data columns to store source files' relative path or static value. Expression is supported for the latter. | • Name • Value |
No | additionalColumns: • name • value |
Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Learning path
Configure and migrate to Azure Database for PostgreSQL DP-3021 - Training
Azure Database for PostgreSQL is a Platform as a Service database service in the Microsoft cloud. It bases itself on the PostgreSQL open-source relational database and includes built-in high availability, automatic backup and restore, as well as comprehensive security features. The pay-as-you-go pricing model provides predictable performance and near-instant scaling. In this learning path, you're introduced to the main features of PostgreSQL and how they work in Azure Database for PostgreSQL. You learn abou