Re: [Sqlalchemy-tickets] [sqlalchemy] #2570: Problem while handling server restart with postgresql
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2012-09-24 14:23:07
|
#2570: Problem while handling server restart with postgresql 8.4.12
-------------------------------------------+-------------------------------
Reporter: abdelrahman | Owner: zzzeek
Type: defect | Status: new
Priority: medium | Milestone: 0.7.9
Component: postgres | Severity: minor - half an
Resolution: | hour
Progress State: needs questions answered | Keywords:
-------------------------------------------+-------------------------------
Changes (by zzzeek):
* owner: => zzzeek
* milestone: => 0.7.9
* component: access => postgres
* severity: no triage selected yet => minor - half an hour
* status_field: awaiting triage => needs questions answered
Comment:
can you confirm this patch fixes please:
{{{
#!diff
diff -r f0be0ba33141 lib/sqlalchemy/dialects/postgresql/psycopg2.py
--- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py Sun Sep 23
22:14:17 2012 -0400
+++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py Mon Sep 24
10:22:33 2012 -0400
@@ -373,7 +373,8 @@
# these error messages from libpq: interfaces/libpq/fe-
misc.c.
# TODO: these are sent through gettext in libpq and we can't
# check within other locales - consider using
connection.closed
- return 'closed the connection' in str(e) or \
+ return 'terminating connection' in str(e) or \
+ 'closed the connection' in str(e) or \
'connection not open' in str(e) or \
'could not receive data from server' in str(e)
elif isinstance(e, self.dbapi.InterfaceError):
}}}
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2570#comment:1>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|