projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae137bc
)
Show psql timing output for failed queries as well as successful ones
author
Magnus Hagander
<magnus@hagander.net>
Wed, 18 Jan 2012 09:32:54 +0000
(10:32 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Wed, 18 Jan 2012 09:34:17 +0000
(10:34 +0100)
This is useful for example when a long-runing statement such as CREATE
INDEX fails after a long time.
src/bin/psql/common.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/common.c
b/src/bin/psql/common.c
index 889c1579f5b76c4737e92b8f23b4d9df35624892..29389d00adf96f51084bf90e739776b4b53c3f12 100644
(file)
--- 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 */