summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-11-16 00:42:23 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-11-16 01:01:32 +0000
commit73265e7ece3ca5e6eba1ec8b4234e5884905aafc (patch)
treea41b7d9420bbd61acc3c58066d1a332e8432817e /doc/src
parent58079c6c9110767eda2e7ba894aaf1bffbd18ad2 (diff)
downloadpsycopg2-73265e7ece3ca5e6eba1ec8b4234e5884905aafc.tar.gz
Refuse connection with server with protocol version 2.
This cuts off server whose version is older than 7.4. But enables us to remove large portions of code rarely used and tested (e.g. p2 copy) and will allow us to drop the query we do at each connection to establish the client encoding and the datestyle.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/connection.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/src/connection.rst b/doc/src/connection.rst
index 624fcba..22241fe 100644
--- a/doc/src/connection.rst
+++ b/doc/src/connection.rst
@@ -428,7 +428,9 @@ The ``connection`` class
.. attribute:: protocol_version
A read-only integer representing frontend/backend protocol being used.
- It can be 2 or 3.
+ Currently Psycopg supports only protocol 3, which allows connection
+ to PostgreSQL server from version 7.4. Psycopg versions previous than
+ 2.3 support both protocols 2 and 3.
.. seealso:: libpq docs for `PQprotocolVersion()`__ for details.