Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

postgresconnection

Hello All..

I am designing a job in which i am making a connection postgresconnection connector in prejob and after that i am using existing connection in postgresoutput connector but that is not inserting the record in table. But if i give all configuration info (host,password,user,database) in postgresoutput instead of postgresconnection  its working fine.

 

but i dont want to make connection at each record .is it not posssible to make connection once in postgresconnection  connector and use existing connection in postgresoutput connector

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

@TRF

i solved my problem..

Actually i didn't commit after making connection..

now its working perfect.

View solution in original post

4 Replies
TRF
Champion II
Champion II

Can you share your job design?
Are you sure the connection after tPreJob is successfully opened?
Anonymous
Not applicable
Author

thanks for reply....i am facing the same problem in mysql also..i am getting this

[statistics] connecting to socket on port 3430
[statistics] connected
com.mysql.jdbc.JDBC4Connection@48eff760
[statistics] disconnected

 

To print the status of connection i am using this code line---System.out.println((java.sql.Connection)globalMap.get("conn_tMysqlConnection_1"));

it is showing connected status i think ..plz tell me what wrong i am doing

 

 

Anonymous
Not applicable
Author

@TRF

thanks for reply....i am facing the same problem in mysql also..i am getting this

[statistics] connecting to socket on port 3430
[statistics] connected
com.mysql.jdbc.JDBC4Connection@48eff760
[statistics] disconnected

 

To print the status of connection i am using this code line---System.out.println((java.sql.Connection)globalMap.get("conn_tMysqlConnection_1"));

it is showing connected status i think ..plz tell me what wrong i am doing..

plz reply soon

Anonymous
Not applicable
Author

@TRF

i solved my problem..

Actually i didn't commit after making connection..

now its working perfect.