Re: [BUGS] BUG #5837: PQstatus() fails to report lost connection

2011-01-22 Thread Robert Haas
On Thu, Jan 13, 2011 at 8:36 PM, Murray S. Kucherawy wrote: > > The following bug has been logged online: > > Bug reference:      5837 > Logged by:          Murray S. Kucherawy > Email address:      m...@cloudmark.com > PostgreSQL version: 9.0.2 > Operating system:   FreeBSD > Description:        

Re: [BUGS] BUG #5837: PQstatus() fails to report lost connection

2011-01-22 Thread Tom Lane
Robert Haas writes: > On Thu, Jan 13, 2011 at 8:36 PM, Murray S. Kucherawy > wrote: >> 1) establish a connection to postgresql >> 2) initiate a query, collect results, etc.; all normal >> 3) while client is idle, restart the server >> 4) initiate the very same query as before >> 5) call PQgetRes