summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/features.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-02-04 11:07:46 -0500
committerTim Graham <timograham@gmail.com>2019-02-04 18:07:02 -0500
commit39ebdf5a3c5e4e979c71a18b4bad73e3946b02d0 (patch)
treeba3325b4d05a2bc40a4471ac807b08e10f1f379b /django/db/backends/postgresql/features.py
parentd47498c5df7e8861c19fea22e5b04229b510bc3e (diff)
downloaddjango-39ebdf5a3c5e4e979c71a18b4bad73e3946b02d0.tar.gz
Fixed #30155 -- Dropped support for PostgreSQL 9.4 and PostGIS 2.1.
Diffstat (limited to 'django/db/backends/postgresql/features.py')
-rw-r--r--django/db/backends/postgresql/features.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py
index af3cde88b9..907ba136fb 100644
--- a/django/db/backends/postgresql/features.py
+++ b/django/db/backends/postgresql/features.py
@@ -16,6 +16,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
has_select_for_update = True
has_select_for_update_nowait = True
has_select_for_update_of = True
+ has_select_for_update_skip_locked = True
can_release_savepoints = True
supports_tablespaces = True
supports_transactions = True
@@ -56,10 +57,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
validates_explain_options = False # A query will error on invalid options.
@cached_property
- def is_postgresql_9_5(self):
- return self.connection.pg_version >= 90500
-
- @cached_property
def is_postgresql_9_6(self):
return self.connection.pg_version >= 90600
@@ -67,11 +64,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
def is_postgresql_10(self):
return self.connection.pg_version >= 100000
- has_select_for_update_skip_locked = property(operator.attrgetter('is_postgresql_9_5'))
- has_brin_index_support = property(operator.attrgetter('is_postgresql_9_5'))
- has_jsonb_agg = property(operator.attrgetter('is_postgresql_9_5'))
has_brin_autosummarize = property(operator.attrgetter('is_postgresql_10'))
- has_gin_pending_list_limit = property(operator.attrgetter('is_postgresql_9_5'))
- supports_ignore_conflicts = property(operator.attrgetter('is_postgresql_9_5'))
has_phraseto_tsquery = property(operator.attrgetter('is_postgresql_9_6'))
supports_table_partitions = property(operator.attrgetter('is_postgresql_10'))