Skip to content

Commit 2106c55

Browse files
committed
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.
1 parent ae137bc commit 2106c55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ SendQuery(const char *query)
942942
PQclear(results);
943943

944944
/* Possible microtiming output */
945-
if (OK && pset.timing)
945+
if (pset.timing)
946946
printf(_("Time: %.3f ms\n"), elapsed_msec);
947947

948948
/* check for events that may occur during query execution */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy