On Thu, 2010-03-25 at 20:04 +0100, Rainer Weikusat wrote:
> This is the only part of the driver-pgsql.c code where a
> CONNECTION_BAD does not result in driver_pgsql_close being called.
> This will likely happen after the next query (from queue or a new one)
> failed because the connection was bad. Is there a reason for this?

Maybe it would be ok, but it's a bit risky change. It's possible that
closing the connection at that point frees some memory that some code
later still tries to use.

Although a quick look at the code shows that it's probably safe.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to