Commit 2106c55a authored by Magnus Hagander's avatar Magnus Hagander

Show psql timing output for failed queries as well as successful ones

This is useful for example when a long-runing statement such as CREATE
INDEX fails after a long time.
parent ae137bca
......@@ -942,7 +942,7 @@ SendQuery(const char *query)
PQclear(results);
/* Possible microtiming output */
if (OK && pset.timing)
if (pset.timing)
printf(_("Time: %.3f ms\n"), elapsed_msec);
/* check for events that may occur during query execution */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment