We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad15287 commit 1c30bc0Copy full SHA for 1c30bc0
debug_toolbar/views.py
@@ -87,6 +87,8 @@ def sql_explain(request):
87
# EXPLAIN QUERY PLAN dumps a more human-readable summary
88
# See http://www.sqlite.org/lang_explain.html for details
89
cursor.execute("EXPLAIN QUERY PLAN %s" % (sql,), params)
90
+ elif engine == "psycopg2":
91
+ cursor.execute("EXPLAIN ANALYZE %s" % (sql,), params)
92
else:
93
cursor.execute("EXPLAIN %s" % (sql,), params)
94
0 commit comments