Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execute PostgreSql stored procedure in azure data factory

I have a requirement to execute Azure PostgreSQL stored procedure using Azure Data Factory. Is there any way to do the same. I found that Stored Procedure activity only supports SQL procedures.

Basically I have some staging tables in PostgreSQL and I want to load data into target tables(in PostgreSQL). I have written some stored procedures to apply transformations and load data. I want to run those stored procedures in ADF. Is there any other suggested option to achieve this. TIA!

like image 655
Sonam Avatar asked Oct 12 '25 00:10

Sonam


2 Answers

There is a way to execute the PostgreSQL function from Azure Synapse Analytics or Azure data factory. use lookup activity with query as "select function-name()"

like image 187
Purna Chandra Dash Avatar answered Oct 15 '25 16:10

Purna Chandra Dash


Yes, Stored Procedure activity doesn't support Azure PostgreSQL stored procedure. It only supports Azure SQL Database, Azure Synapse Analytics and SQL Server Database. So you can try to delegate the call to PostgreSQL with Azure Function as Joel said.

like image 22
Steve Zhao Avatar answered Oct 15 '25 18:10

Steve Zhao