Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add EXPLAIN ANALYZE for Postgres #323

Merged
merged 1 commit into from

5 participants

@mattrobenolt

No description provided.

@nuklea

Please, merge it!

@mattrobenolt

@dcramer, anything against this?

@dcramer dcramer merged commit 42d7dde into django-debug-toolbar:master
@dcramer
Owner

lol 5 months

@mattrobenolt mattrobenolt deleted the mattrobenolt:explain-analyze branch
@nuklea

=(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 17, 2012
  1. @mattrobenolt
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  debug_toolbar/views.py
View
2  debug_toolbar/views.py
@@ -87,6 +87,8 @@ def sql_explain(request):
# EXPLAIN QUERY PLAN dumps a more human-readable summary
# See http://www.sqlite.org/lang_explain.html for details
cursor.execute("EXPLAIN QUERY PLAN %s" % (sql,), params)
+ elif engine == "psycopg2":
+ cursor.execute("EXPLAIN ANALYZE %s" % (sql,), params)
else:
cursor.execute("EXPLAIN %s" % (sql,), params)
Something went wrong with that request. Please try again.