summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-04 14:43:54 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-04 14:43:54 +0000
commit665e9dc665cf72086c00871756c48e8d38bade2f (patch)
tree3690755cefb299224ff9de1c934eb2bf06eb259e /doc
parentc60682c230f8e9ef6a395be55409d549fa5d7239 (diff)
downloadpsycopg2-665e9dc665cf72086c00871756c48e8d38bade2f.tar.gz
Exposing ISOLATION_LEVEL_DEFAULT to Python
This is now the state that is returned to Python if nothing has been explicitly set.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/extensions.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/src/extensions.rst b/doc/src/extensions.rst
index 8d70ba3..2475d7b 100644
--- a/doc/src/extensions.rst
+++ b/doc/src/extensions.rst
@@ -651,6 +651,15 @@ set to one of the following constants:
.. __: http://www.postgresql.org/docs/current/static/transaction-iso.html#XACT-SERIALIZABLE
+.. data:: ISOLATION_LEVEL_DEFAULT
+
+ Whatever is defined by the server, either via server configuration or by
+ statements executed within the session outside Pyscopg control; Psycopg
+ will not force an isolation level of its own. If you want to know what the
+ value is you can use a query such as :sql:`show transaction_isolation` or
+ :sql:`show default_transaction_isolation`.
+
+ .. versionadded:: 2.7
.. index::