Re: [GENERAL] Get status of connection (C)

2001-05-29 Thread Tim Barnard
s happened when the backend has died. Tim - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 29, 2001 2:46 AM Subject: [GENERAL] Get status of connection (C) > > I'm writing a pool manager to manage x connection

[GENERAL] Get status of connection (C)

2001-05-29 Thread zilch
I'm writing a pool manager to manage x connections to a pgsql postmaster. The getConnection method has to check if the connection is still valid, and try to reconnect if it ain't. Do you guys have a good way of doing this? Can I use PQstatus? Should I make a little runCommand on it to try it