diff options
Diffstat (limited to 'debug_toolbar/views.py')
| -rw-r--r-- | debug_toolbar/views.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/debug_toolbar/views.py b/debug_toolbar/views.py index 18b9460..4b4ebc9 100644 --- a/debug_toolbar/views.py +++ b/debug_toolbar/views.py @@ -95,6 +95,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) | 
