python - fe: Don't close the connection on __del__. - Mailing list pgsql-committers

From jwp@pgfoundry.org (James William Pye)
Subject python - fe: Don't close the connection on __del__.
Date
Msg-id 20060330154219.7FEE31033846@pgfoundry.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Don't close the connection on __del__.

While convenient, this is potentially undesireable. In particular, I imagine
there may be cases where it is desireable to pass around internals of already
established connections; Interchange or the Interchange's pipe. Additionally, it
requires more state checking for appropriate cleanup in certain
situations. For instance, socket errors on connection instantiation may cause
an attribute error to be thrown in __del__.

Modified Files:
--------------
    fe/src:
        tracenull.py (r1.20 -> r1.21)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/fe/src/tracenull.py.diff?r1=1.20&r2=1.21)

pgsql-committers by date:

Previous
From: ksrikanth@pgfoundry.org (User Ksrikanth)
Date:
Subject: bizgres - bizgres: Fixing Version Put Postgres at the begining.
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Suppress attempts to report dropped tables to the stats collector