summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/features.py
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2020-07-26 22:29:05 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-07-28 07:21:16 +0200
commit628c4a26eee93417bb7161aa393dffb3f4c146b2 (patch)
tree6e7fb7f3133352983088381dd712bcc9de4e742b /django/db/backends/postgresql/features.py
parent83fbaa92311dd96e330496a0e443ea71b9c183e2 (diff)
downloaddjango-628c4a26eee93417bb7161aa393dffb3f4c146b2.tar.gz
Refs #27996 -- Doc'd no extension required for RandomUUID() on PostgreSQL 13+.
https://www.postgresql.org/docs/13/functions-uuid.html https://www.postgresql.org/docs/13/pgcrypto.html#id-1.11.7.34.10.5
Diffstat (limited to 'django/db/backends/postgresql/features.py')
-rw-r--r--django/db/backends/postgresql/features.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py
index abcfdf376d..864bcf3919 100644
--- a/django/db/backends/postgresql/features.py
+++ b/django/db/backends/postgresql/features.py
@@ -79,6 +79,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
def is_postgresql_12(self):
return self.connection.pg_version >= 120000
+ @cached_property
+ def is_postgresql_13(self):
+ return self.connection.pg_version >= 130000
+
has_brin_autosummarize = property(operator.attrgetter('is_postgresql_10'))
has_websearch_to_tsquery = property(operator.attrgetter('is_postgresql_11'))
supports_table_partitions = property(operator.attrgetter('is_postgresql_10'))