summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql_psycopg2
AgeCommit message (Collapse)Author
2019-01-17Refs #25175 -- Removed db.backends.postgresql_psycopg2 per deprecation timeline.Tim Graham
2017-08-21Removed postgresql_psycopg2.versionMariusz Felisiak
Uneeded since 29ea9714ee23525000dd8bdb7a9aafb2147de8c7.
2017-01-25Refs #25175 -- Deprecated db.backends.postgresql_psycopg2 module.Tim Graham
2015-08-07Refs #25175 -- Added backwards compatibility for importing ↵Caio Ariede
postgresql_psycopg2 backend.
2015-08-07Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.Caio Ariede
2015-06-30Fixed #23658 -- Provided the password to PostgreSQL dbshell commandJean-Michel Vourgère
The password from settings.py is written in a temporary .pgpass file file whose name is given to psql using the PGPASSFILE environment variable.
2015-06-22Fixed #25002 -- Used PostgreSQL column type alteration USING clause.Simon Charette
Thanks to Dirk Uys for the report.
2015-06-19Fixed #23804 -- Added RasterField for PostGIS.Daniel Wiesmann
Thanks to Tim Graham and Claude Paroz for the reviews and patches.
2015-06-05Fixed #24767 -- Added Greatest and Least expressionsIan Foote
Greatest and Least are row-level Function versions of Min and Max.
2015-06-02Fixed #24892 -- Fixed quoting of SQL when renaming a field to AutoField in ↵Tim Graham
PostgreSQL
2015-06-02Fixed #9596 -- Added date transform for DateTimeField.Jon Dufresne
2015-05-24Well, what should I say: UPS.Florian Apolloner
2015-05-24Fixed #24844 -- Corrected has_changed implementation for HStoreField.Andrea Grandi
2015-05-17Dropped the needs_datetime_string_cast feature.Aymeric Augustin
It has been superseded by the converter infrastructure.
2015-05-17Fixed #23820 -- Supported per-database time zone.Aymeric Augustin
The primary use case is to interact with a third-party database (not primarily managed by Django) that doesn't support time zones and where datetimes are stored in local time when USE_TZ is True. Configuring a PostgreSQL database with the TIME_ZONE option while USE_TZ is False used to result in silent data corruption. Now this is an error.
2015-05-17Renamed value_to_db_xxx to adapt_xxxfield_value.Aymeric Augustin
This mirrors convert_xxxfield_value nicely, taking advantage of the adapter/converter terminology which is commonly used by DB-API modules.
2015-05-15Fixed #24791 -- Added fallback when 'postgres' database isn't availableClaude Paroz
Thanks Carl Meyer and Tim Graham for the reviews.
2015-04-17Fixed #24595 -- Prevented loss of null info in MySQL field alterationClaude Paroz
Thanks Simon Percivall for the report, and Simon Charette and Tim Graham for the reviews.
2015-03-29Fixed #19259 -- Added group by selected primary keys support.Simon Charette
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
2015-02-16Fixed #24335 -- Bumped required psycopg2 version to 2.4.5 (2.5 for ↵Tim Graham
contrib.postgres).
2015-02-14Removed 'autocommit' options for the psycopg2 backend.Aymeric Augustin
It was documented as not having any effect since Django 1.6.
2015-02-14Cleaned up init_connection_state in the psycopg2 backend.Aymeric Augustin
settings_dict['TIME_ZONE'] is set in ConnectionHandler.ensure_defaults.
2015-02-14Fixed #24318 -- Set the transaction isolation level with psycopg >= 2.4.2.Aymeric Augustin
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-31Removed PostgreSQL DatabaseWrapper._set_isolation_level().Tim Graham
This method is unused since 8717b0668caf00ec5e81ef5a1e31b4d7c64eee8a.
2015-01-18Removed obsolete SQL generation methods.Tim Graham
2015-01-17Required sqlparse for SQL splitting per deprecation timeline.Tim Graham
2015-01-16Fixed #24092 -- Widened base field support for ArrayField.Marc Tamlyn
Several issues resolved here, following from a report that a base_field of GenericIpAddressField was failing. We were using get_prep_value instead of get_db_prep_value in ArrayField which was bypassing any extra modifications to the value being made in the base field's get_db_prep_value. Changing this broke datetime support, so the postgres backend has gained the relevant operation methods to send dates/times/datetimes directly to the db backend instead of casting them to strings. Similarly, a new database feature has been added allowing the uuid to be passed directly to the backend, as we do with timedeltas. On the other side, psycopg2 expects an Inet() instance for IP address fields, so we add a value_to_db_ipaddress method to wrap the strings on postgres. We also have to manually add a database adapter to psycopg2, as we do not wish to use the built in adapter which would turn everything into Inet() instances. Thanks to smclenithan for the report.
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham
2015-01-12Fixed #24031 -- Added CASE expressions to the ORM.Michał Modzelewski
2015-01-12Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz
Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
2014-12-31Moved DatabaseCreation.data_types properties to DatabaseWrapper.Tim Graham
refs #22340.
2014-12-30Removed db.backends methods which only call super().Tim Graham
2014-12-23Fixed #24033 -- Use interval type on Oracle.Marc Tamlyn
Use INTERVAL DAY(9) TO SECOND(6) for Durationfield on Oracle rather than storing as a NUMBER(19) of microseconds. There are issues with cx_Oracle which require some extra data manipulation in the database backend when constructing queries, but it handles the conversion back to timedelta objects cleanly. Thanks to Shai for the review.
2014-12-20Fixed #2443 -- Added DurationField.Marc Tamlyn
A field for storing periods of time - modeled in Python by timedelta. It is stored in the native interval data type on PostgreSQL and as a bigint of microseconds on other backends. Also includes significant changes to the internals of time related maths in expressions, including the removal of DateModifierNode. Thanks to Tim and Josh in particular for reviews.
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-04Fixed #23954 -- Added special text/varchar PostgreSQL indexes in migrationsClaude Paroz
Thanks adityagupta104 for the report and Tim Graham for the review.
2014-12-01Fixed #23807 -- Ignored non-digits in psycopg2 versionAndriy Sokolovskiy
2014-11-28Fixed #16731 -- Made pattern lookups work properly with F() expressionsThomas Chaumeny
2014-11-20Added AutoField introspection for PostgreSQLClaude Paroz
Refs #23748.
2014-09-26Factorized schema_editor() at BaseDatabaseWrapper levelClaude Paroz
2014-09-24Fixed flake8 warnings.Tim Graham
2014-09-23Made get_table_list return a TableInfo named tupleClaude Paroz
2014-09-16Fixed #19463 -- Added UUIDFieldMarc Tamlyn
Uses native support in postgres, and char(32) on other backends.
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-04Fixed #22234 -- Replaced OS-specific code with subprocess.call() in dbshell.Mihail Milushev
This fixes escaping of special characters on Windows.
2014-08-01Fixed #23108 -- Dropped support for PostgreSQL 8.4 & PostGIS 1.3, 1.4.Tim Graham
Thanks Claude Paroz for the review.
2014-07-28Fixed #23074 -- Avoided leaking savepoints in atomic.Aymeric Augustin
Thanks Chow Loong Jin for the report and the initial patch.
2014-06-20Fixed #22514 -- Prevented indexes on virtual fields [postgres].Vlastimil Zíma