Skip to content

Commit 2ee5d94

Browse files
committed
Don't write timing output in quiet mode.
Merlin Moncure
1 parent 274dfdb commit 2ee5d94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2007, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.133 2007/02/08 11:10:27 petere Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.134 2007/04/16 20:15:38 mha Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "common.h"
@@ -918,7 +918,7 @@ SendQuery(const char *query)
918918
PQclear(results);
919919

920920
/* Possible microtiming output */
921-
if (OK && pset.timing)
921+
if (OK && pset.timing && !pset.quiet)
922922
printf(_("Time: %.3f ms\n"), elapsed_msec);
923923

924924
/* 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