diff options
| author | Magnus Hagander | 2012-01-18 09:32:54 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2012-01-18 09:34:17 +0000 |
| commit | 2106c55ac8dacc52bf6483925529fd3ab99b94c4 (patch) | |
| tree | d9491aca9911ca5e8f2c209e27926e6e972a494f /src | |
| parent | ae137bcaab7dd0b1ee58020d93ce8f07e36d4d49 (diff) | |
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.
Diffstat (limited to 'src')
| -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 */ |
