Re: [psycopg] #206: Patch to have psycopg2da re-connect on database restart
"psycopg" <fog-NGVKUo/i/[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
#206: Patch to have psycopg2da re-connect on database restart
----------------------+-----------------------------------------------------
Reporter: jinty | Owner: fog
Type: defect | Status: new
Priority: normal | Milestone: PSYCOPG 2.0.6
Component: psycopg2 | Version: 2.0.5
Severity: patch | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by jamesh):
Note that in a transaction-aware setup, this is potentially dangerous.
While reconnecting is good, it should not be done until the current
transaction has completed. What you don't want to happen is for a
disconnect to be detected part way through the Zope transaction, and for
remainder to run in a separate database transaction ...
--
Ticket URL: <http://initd.org/tracker/psycopg/ticket/206#comment:1>
psycopg <http://initd.org/>
psycopg