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 pa...@microolap.com: 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

[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

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, sMy application has to do a real time data upload to PostgreSQL s server. sEvery time i have to do a real time upload, i do not wish to open s new connection. sI want to open a connection once [when my application