diff --git a/Products/ZPsycopgDA/db.py b/Products/ZPsycopgDA/db.py index 31a72ca..852bab9 100644 --- a/Products/ZPsycopgDA/db.py +++ b/Products/ZPsycopgDA/db.py @@ -325,6 +325,7 @@ def is_connection_error(error): 'OperationalError', 'InterfaceError' ) and ( + 'SSL SYSCALL error' in value or 'server closed the connection' in value or 'terminating connection due to administrator command' in value or 'connection already closed' in value diff --git a/Products/ZPsycopgDA/dtml/add.dtml b/Products/ZPsycopgDA/dtml/add.dtml index 0555d74..fa37479 100644 --- a/Products/ZPsycopgDA/dtml/add.dtml +++ b/Products/ZPsycopgDA/dtml/add.dtml @@ -1,18 +1,15 @@ + form_title='Add Z Psycopg 2 Database Connection')">

A Zope Psycopg 2 Database Connection is used to connect and execute - queries on a PostgreSQL database. In the form below Connection String - (also called the Data Source Name or DSN for short) is a string containing - the connection parameters, for example: + queries on a PostgreSQL database. In the form below Connection String + (also called the Data Source Name or DSN for short) is a string containing + the connection parameters, for example: “dbname=test user=postgres password=secret”

@@ -20,7 +17,7 @@
-
@@ -29,7 +26,7 @@
-
@@ -38,8 +35,8 @@
- The basic connection parameters are: @@ -62,14 +59,14 @@
- +
- +
@@ -79,12 +76,12 @@ - Note: Unless your server is capable of retries (Setting max-conflict-retries - in zope.conf), you should not use repeatable read or serializable, + Note: Unless your server is capable of retries (Setting max-conflict-retries + in zope.conf), you should not use repeatable read or serializable, because both can produce random errors on contradicting transactions.
@@ -93,25 +90,25 @@
- +
- +
- + - Note: "Two-Phase Commit" uses PREPARE TRANSACTION, which - has some limitations (no NOTIFY or LISTEN is possible), - and needs special provisions to clean up orphaned prepared transactions. + Note: "Two-Phase Commit" uses PREPARE TRANSACTION, which + has some limitations (no NOTIFY or LISTEN is possible), + and needs special provisions to clean up orphaned prepared transactions. Use with care.
@@ -121,7 +118,7 @@
diff --git a/Products/ZPsycopgDA/dtml/edit.dtml b/Products/ZPsycopgDA/dtml/edit.dtml index d15be9c..a4bda14 100644 --- a/Products/ZPsycopgDA/dtml/edit.dtml +++ b/Products/ZPsycopgDA/dtml/edit.dtml @@ -5,9 +5,9 @@

A Zope Psycopg 2 Database Connection is used to connect and execute - queries on a PostgreSQL database. In the form below Connection String - (also called the Data Source Name or DSN for short) is a string containing - the connection parameters, for example: + queries on a PostgreSQL database. In the form below Connection String + (also called the Data Source Name or DSN for short) is a string containing + the connection parameters, for example: “dbname=test user=postgres password=secret”

@@ -15,7 +15,7 @@
-
@@ -24,7 +24,7 @@
- @@ -48,7 +48,7 @@
- checked="YES"/> + checked="checked"/>
@@ -56,14 +56,14 @@
- Note: Unless your server is capable of retries (Setting max-conflict-retries - in zope.conf), you should not use repeatable read or serializable, + Note: Unless your server is capable of retries (Setting max-conflict-retries + in zope.conf), you should not use repeatable read or serializable, because both can produce random errors on contradicting transactions.
@@ -73,25 +73,25 @@
- + checked="checked" />
- + checked="checked" />
- + checked="checked" /> - Note: "Two-Phase Commit" uses PREPARE TRANSACTION, which - has some limitations (no NOTIFY or LISTEN is possible), - and needs special provisions to clean up orphaned prepared transactions. + Note: "Two-Phase Commit" uses PREPARE TRANSACTION, which + has some limitations (no NOTIFY or LISTEN is possible), + and needs special provisions to clean up orphaned prepared transactions. Use with care.
@@ -100,7 +100,7 @@
-