Hi guys!
Could you please help me to figure out if it's possible or not to run a postgresql stored procedure within a Talend Job? And if yes I'll be very grateful for an example.
Thank you a lot in advance!!!
Hi,
Usually, we use tXXXSP component to call stored procedure.
See the related KB article
TalendHelpCenter:Calling a stored procedure or function.
So far, there is no available tpostgresqlSP official component in Talend product.
You can have a try on component
tPostgresqlRow, if it can't meet your needs, please open a jira bug of DI project on
Talend Bug Tracker for a new feature(tpostgresqlSP).
In addition that, I have searched a talend exchange and found a custom component
tPostgresqlSP.
Best regards
Sabrina
Hi Sabrina, Thank you a lot for the response! I also thought about tPostgresqlRow component but I didn't see the custom SP component for PostgreSQL. Kind regards, Mariia
Unfortunately as I'm using Talend DI 5.2 I didn't manage to integrate mentioned custom component in my JOB. Instead I'm using tPostgresqlRow calling needed stored procedure within it.
Thank you a lot, Sabrina, for helping me
Sincerely,
Mariia
being a beginner............how to execute a sp in postgresql. i am not familiar with talend. as i am seeing the post postgresqlrow is good enough for procedure..if so can anyone tell me how to use this one.
Hi,
So far, there is no tPostgresqlSP in talend official components. You have to manage to integrate custom component
http://www.talendforge.org/exchange/index.php?eid=41&product=tos&action=view&nav=1,1,1 so that it can compatible with your current talend build version.
Or take the solution by @Mariia_Kliuchnikova: using tPostgresqlRow calling needed stored procedure within it.
Best regards
Sabrina
I am able to call the function by using the following query " select my_test ( "+ ((Integer)globalMap.get("PropRow.in_var")) + ");" Still i am not sure what is globalMap and what is PropRow. Any document regarding these is going to be really helpful for me. Thanks, Debashis