1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #34873 -- Added QuerySet.explain() support for GENERIC_PLAN option on PostgreSQL 16+.

This commit is contained in:
Mariusz Felisiak
2023-09-26 12:05:26 +02:00
committed by GitHub
parent 357365a64e
commit f9e9526800
5 changed files with 13 additions and 1 deletions

View File

@@ -85,6 +85,8 @@ class ExplainTests(TestCase):
{"settings": True},
{"analyze": True, "wal": True},
]
if connection.features.is_postgresql_16:
test_options.append({"generic_plan": True})
for options in test_options:
with self.subTest(**options), transaction.atomic():
with CaptureQueriesContext(connection) as captured_queries: