python - fe: Don't close the connection on __del__.

Поиск
Список
Период
Сортировка
От jwp@pgfoundry.org (James William Pye)
Тема python - fe: Don't close the connection on __del__.
Дата
Msg-id 20060330154219.7FEE31033846@pgfoundry.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: ksrikanth@pgfoundry.org (User Ksrikanth)
Дата:
Сообщение: bizgres - bizgres: Fixing Version Put Postgres at the begining.
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Suppress attempts to report dropped tables to the stats collector