From 2106c55ac8dacc52bf6483925529fd3ab99b94c4 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 18 Jan 2012 10:32:54 +0100 Subject: [PATCH] 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. --- src/bin/psql/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 889c1579f5..29389d00ad 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 */ -- 2.40.0