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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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: