Index: django/db/backends/postgresql_psycopg2/base.py
===================================================================
--- django/db/backends/postgresql_psycopg2/base.py (revision 10832)
+++ django/db/backends/postgresql_psycopg2/base.py (working copy)
@@ -109,12 +109,7 @@
# No savepoint support for earlier version of PostgreSQL.
self.features.uses_savepoints = False
if self.features.uses_autocommit:
- if self._version[0:2] < (8, 2):
- # FIXME: Needs extra code to do reliable model insert
- # handling, so we forbid it for now.
- from django.core.exceptions import ImproperlyConfigured
- raise ImproperlyConfigured("You cannot use autocommit=True with PostgreSQL prior to 8.2 at the moment.")
- else:
+ if self._version[0:2] >= (8, 2):
# FIXME: Eventually we're enable this by default for
# versions that support it, but, right now, that's hard to
# do without breaking other things (#10509).
Index: docs/topics/db/transactions.txt
===================================================================
--- docs/topics/db/transactions.txt (revision 10832)
+++ docs/topics/db/transactions.txt (working copy)
@@ -283,7 +283,7 @@
.. versionadded:: 1.1
-With PostgreSQL 8.2 or later, there is an advanced option to run PostgreSQL
+There is an advanced option to run PostgreSQL
with :ref:`database-level autocommit `. If you use this option,
there is no constantly open transaction, so it is always possible to continue
after catching an exception. For example::