Hi,

the PostgeSQL reconnection code did not work. PQstatus() returned CONNECTION_OK, even when the database was down!

I've changed the code (after finding that we weren't the only ones with this problem) to just do the query, and try to reconnect on a failure. If the query fails after this PQreset(), DBMail assumes the database is dead.

This works like a charm.

BTW, this was the first bug (reported by Thomas Mueller) in the new bug tracker that has been resolved. :)

Ilja

Reply via email to