Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Run postgresql stored procedure

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!!! 0683p000009MACn.png
Labels (2)
22 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Hi,
Click the link I given you and you will find the custom component tPostgresqlSP, but the revision is compatible with: 2.3.1.
Best regards
Sabrina
0683p000009MBFE.png
Anonymous
Not applicable
Author

Yes, already done, thank you!!
I'll try it and will update this post if it works with 5.2 0683p000009MACn.png
Kind regards,
Mariia
Anonymous
Not applicable
Author

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 0683p000009MA9p.png
Sincerely,
Mariia
Anonymous
Not applicable
Author

Hi,
Thanks for your feedback, feel free post your issue on forum.
Best regards
Sabrina
Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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