diff options
author | Magnus Hagander <magnus@hagander.net> | 2012-01-18 10:32:54 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2012-01-18 10:34:17 +0100 |
commit | 2106c55ac8dacc52bf6483925529fd3ab99b94c4 (patch) | |
tree | d9491aca9911ca5e8f2c209e27926e6e972a494f | |
parent | ae137bcaab7dd0b1ee58020d93ce8f07e36d4d49 (diff) | |
download | postgresql-2106c55ac8dacc52bf6483925529fd3ab99b94c4.tar.gz postgresql-2106c55ac8dacc52bf6483925529fd3ab99b94c4.zip |
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.
-rw-r--r-- | src/bin/psql/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 889c1579f5b..29389d00adf 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -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 */ |