mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Fixed #34873 -- Added QuerySet.explain() support for GENERIC_PLAN option on PostgreSQL 16+.
This commit is contained in:
parent
357365a64e
commit
f9e9526800
5 changed files with 13 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue