Re: [HACKERS] Can PQstatus() be used by Application to check connection to postgres periodically?

2012-02-08 Thread Robert Haas
2012/2/8 Pavel Golub : > Hello, sujayr06. > > You wrote: > > s> Hello All, > > s>            My application has to do a real time data upload to PostgreSQL > s> server. > > s>            Every time i have to do a real time upload, i do not wish to > open > s> new connection. > s>            I want

Re: [HACKERS] Can PQstatus() be used by Application to check connection to postgres periodically?

2012-02-07 Thread Pavel Golub
Hello, sujayr06. You wrote: s> Hello All, s>My application has to do a real time data upload to PostgreSQL s> server. s>Every time i have to do a real time upload, i do not wish to open s> new connection. s>I want to open a connection once [when my applicati

[HACKERS] Can PQstatus() be used by Application to check connection to postgres periodically?

2012-02-07 Thread sujayr06
Hello All, My application has to do a real time data upload to PostgreSQL server. Every time i have to do a real time upload, i do not wish to open new connection. I want to open a connection once [when my application comes up] and periodically check if the conne