summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/base.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34470 -- Enforced UTF-8 encoding on PostgreSQL.Mariusz Felisiak2023-04-071-1/+1
| | | Regression in 6a2165816394ab4bb259f6171e82417e098e97a6.
* Fixed #34466 -- Reallowed setting cursor_factory in DATABASES["options"] on ↵Anders Kaseorg2023-04-071-9/+8
| | | | | | PostgreSQL. Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-011-1/+0
| | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
* Fixed #34255 -- Made PostgreSQL backend use client-side parameters binding ↵Mariusz Felisiak2023-01-171-3/+16
| | | | | | | | with psycopg version 3. Thanks Guillaume Andreu Sabater for the report. Co-authored-by: Florian Apolloner <apollo13@users.noreply.github.com>
* Refs #34255 -- Bumped required psycopg version to 3.1.8.Mariusz Felisiak2023-01-171-3/+3
|
* Fixed #34200 -- Made the session role configurable on PostgreSQL.Mike Crute2023-01-031-5/+20
|
* Fixed #14094 -- Added support for unlimited CharField on PostgreSQL.Adrian Torres2022-12-281-1/+7
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #33308 -- Added support for psycopg version 3.Daniele Varrazzo2022-12-151-48/+114
| | | | | | | 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>
* Refs #33308 -- Added psycopg_any.IsolationLevel.Florian Apolloner2022-12-121-6/+15
|
* Refs #33308 -- Modernized database wrapper in the PostgreSQL backend.Florian Apolloner2022-12-061-6/+5
| | | | | | | | | - Used connection.info instead of connection.get_parameter_status() and connection.server_info which don't exist in psycopg 3. - Set encoding using the client_encoding connection parameter instead of connection.set_client_encoding() that doesn't exist in psycopg 3. - Used the dbname connection parameter instead of deprecated alias - database.
* Fixed #30511 -- Used identity columns instead of serials on PostgreSQL.Florian Apolloner2022-04-131-3/+8
|
* Fixed #33379 -- Added minimum database version checks.Hasan Ramezani2022-02-181-0/+8
| | | | Thanks Tim Graham for the review.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-99/+114
|
* Refs #32355 -- Bumped required psycopg2 version to 2.8.4.Mariusz Felisiak2021-12-221-2/+2
| | | psycopg2 2.8.4 is the first release to support Python 3.8.
* Fixed #33160 -- Avoided suppressing query errors in _nodb_cursor() on ↵Daniel Hahler2021-10-011-0/+3
| | | | PostgreSQL.
* Fixed #32355 -- Dropped support for Python 3.6 and 3.7Mariusz Felisiak2021-02-101-6/+1
|
* Fixed #32403 -- Fixed re-raising DatabaseErrors when using only 'postgres' ↵Mariusz Felisiak2021-02-021-0/+3
| | | | | | | database. Thanks Kazantcev Andrey for the report. Regression in f48f671223a20b161ca819cf7d6298e43b8ba5fe.
* Fixed #32292 -- Added support for connection by service name to PostgreSQL.Hasan Ramezani2021-01-201-6/+19
|
* Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.Mariusz Felisiak2021-01-141-1/+0
|
* Fixed #32201 -- Removed obsolete isort:skip's.Seamus Quinn2020-11-191-6/+6
| | | Obsolete as of isort 5.
* Fixed #31956 -- Fixed crash of ordering by JSONField with a custom decoder ↵Mariusz Felisiak2020-08-281-1/+4
| | | | | | | on PostgreSQL. Thanks Marc Debureaux for the report. Thanks Simon Charette, Nick Pope, and Adam Johnson for reviews.
* Fixed #12990, Refs #27694 -- Added JSONField model field.sage2020-05-081-0/+1
| | | | | | | | | | | Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #31233 -- Closed database connections and cursors after use.Jon Dufresne2020-02-061-3/+5
|
* Refs #31233 -- Changed DatabaseWrapper._nodb_connection to _nodb_cursor().Jon Dufresne2020-02-061-6/+11
| | | | | | It is now a method instead of a property and returns a context manager that yields a cursor on entry and closes the cursor and connection upon exit.
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-2/+1
|
* Fixed #31212 -- Updated psycopg links to HTTPS and new location.Jon Dufresne2020-01-291-1/+1
|
* Fixed #23524 -- Allowed DATABASES['TIME_ZONE'] option on PostgreSQL.Aymeric Augustin2019-12-041-2/+4
|
* Fixed #30987 -- Added models.PositiveBigIntegerField.Caio Ariede2019-11-191-0/+2
|
* Fixed #30661 -- Added models.SmallAutoField.Nick Pope2019-08-021-0/+1
|
* Fixed #30451 -- Added ASGI handler and coroutine-safety.Andrew Godwin2019-06-201-2/+28
| | | | | This adds an ASGI handler, asgi.py file for the default project layout, a few async utilities and adds async-safety to many parts of Django.
* Fixed #30148 -- Logged COPY ... TO statements in connection.queries on ↵kingbuzzman2019-04-291-0/+16
| | | | PostgreSQL.
* Fixed #30193, Refs #28478 -- Avoided PostgreSQL connection health checks on ↵Simon Charette2019-02-201-4/+1
| | | | | initialization. This addressed a regression introduced by a96b9019320ed8236659ee520a7a017c1bafbc6f as identified by Ran Benita.
* Fixed #30171 -- Fixed DatabaseError in servers tests.Jon Dufresne2019-02-141-1/+0
| | | | | | Made DatabaseWrapper thread sharing logic reentrant. Used a reference counting like scheme to allow nested uses. The error appeared after 8c775391b78b2a4a2b57c5e89ed4888f36aada4b.
* Refs #27753 -- Favored SafeString over SafeText.Tim Graham2019-02-061-2/+2
|
* Refs #28478 -- Prevented timezone assignment for unusable PostgreSQL ↵Simon Charette2019-01-141-1/+5
| | | | connections.
* Fixed #29886 -- Fixed unaccent lookup when PostgreSQL's ↵Jayantha Gumballi2018-11-011-1/+1
| | | | | standard_conforming_strings option is off. Thanks Tom McClure for the patch.
* Refs #29015 -- Added database name to PostgreSQL database name too long ↵Jon Dufresne2018-08-171-3/+7
| | | | exception.
* Fixed #29015 -- Added an exception if the PostgreSQL database name is too long.priyanshsaxena2018-04-271-0/+6
|
* Refs #24791 -- Made PostgreSQL's nodb connection use first PostgresSQL db ↵Mariusz Felisiak2018-04-031-9/+9
| | | | | when 'postgres' db isn't available. Thanks Tim Graham and Claude Paroz for reviews.
* Fixed hanging indentation in various code.Mariusz Felisiak2018-03-161-1/+2
|
* Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope2017-12-111-1/+1
|
* Removed DatabaseWrapper.psycopg2_version.Sergey Fedoseev2017-09-061-4/+0
| | | | Unused since 3adc5f1ee6618a615db07d4a868b366a15c39f82.
* Removed unneeded __init__() in PostgreSQL DatabaseWrapper.Mads Jensen2017-09-051-4/+2
|
* Fixed #27830 -- Used distutils.version.LooseVersion for version parsing.chillaranand2017-06-131-1/+2
|
* Refs #27859 -- Added DatabaseWrapper.display_name.Mariusz Felisiak2017-05-231-0/+1
| | | Thanks Tim Graham for the review.
* Fixed #27966 -- Bumped required psycopg2 version to 2.5.4.Mariusz Felisiak2017-03-211-2/+2
| | | Thanks Tim Graham for the review.
* Removed PostgreSQL version detection for psycopg2 < 2.0.12.Tim Graham2017-03-011-2/+1
|
* Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan2017-02-281-2/+2
|
* Refs #23919 -- Removed usage of obsolete SafeBytes classClaude Paroz2017-01-301-2/+1
| | | | | The class will be removed as part of #27753. Thanks Tim Graham for the review.
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-2/+2
|