summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2022-12-01 20:23:43 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-12-15 06:17:57 +0100
commit09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca (patch)
tree15bb8bb049f9339f30d637e78b340473c2038126 /docs/releases
parentd44ee518c4c110af25bebdbedbbf9fba04d197aa (diff)
Fixed #33308 -- Added support for psycopg version 3.
Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/1.11.txt9
-rw-r--r--docs/releases/4.2.txt14
2 files changed, 19 insertions, 4 deletions
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt
index 5da81cd739..50b78305d4 100644
--- a/docs/releases/1.11.txt
+++ b/docs/releases/1.11.txt
@@ -256,10 +256,11 @@ Database backends
* Added the :setting:`TEST['TEMPLATE'] <TEST_TEMPLATE>` setting to let
PostgreSQL users specify a template for creating the test database.
-* :meth:`.QuerySet.iterator()` now uses :ref:`server-side cursors
- <psycopg2:server-side-cursors>` on PostgreSQL. This feature transfers some of
- the worker memory load (used to hold query results) to the database and might
- increase database memory usage.
+* :meth:`.QuerySet.iterator()` now uses `server-side cursors`_ on PostgreSQL.
+ This feature transfers some of the worker memory load (used to hold query
+ results) to the database and might increase database memory usage.
+
+ .. _server-side cursors: https://www.psycopg.org/docs/usage.html#server-side-cursors
* Added MySQL support for the ``'isolation_level'`` option in
:setting:`OPTIONS` to allow specifying the :ref:`transaction isolation level
diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt
index 3abe03ef85..077762275a 100644
--- a/docs/releases/4.2.txt
+++ b/docs/releases/4.2.txt
@@ -26,6 +26,20 @@ and only officially support the latest release of each series.
What's new in Django 4.2
========================
+Psycopg 3 support
+-----------------
+
+Django now supports `psycopg`_ version 3.1 or higher. To update your code,
+install the `psycopg library`_, you don't need to change the
+:setting:`ENGINE <DATABASE-ENGINE>` as ``django.db.backends.postgresql``
+supports both libraries.
+
+Support for ``psycopg2`` is likely to be deprecated and removed at some point
+in the future.
+
+.. _psycopg: https://www.psycopg.org/psycopg3/
+.. _psycopg library: https://pypi.org/project/psycopg/
+
Minor features
--------------