postgres.git / summary / log / commit / refs
commit ff663c96060a99367cd81d93732a68020f856f18
Author: Magnus Hagander <magnus@hagander.net>
Date: Mon Apr 16 20:16:11 2007 +0000
First released in: 8.3.0, 7.4.17, 8.0.13, 8.1.9, 8.2.4
Don't write timing output in quiet mode.
Merlin Moncure
src/bin/psql/common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index 2e30c4e9a26..e56823c667d 100644
--- a/src/bin/psql/common.c
+++ b/src/bin/psql/common.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.130 2006/10/04 00:30:05 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.130.2.1 2007/04/16 20:16:11 mha Exp $
*/
#include "postgres_fe.h"
#include "common.h"
@@ -942,7 +942,7 @@ SendQuery(const char *query)
PQclear(results);
/* Possible microtiming output */
- if (OK && pset.timing)
+ if (OK && pset.timing && !pset.quiet)
printf(_("Time: %.3f ms\n"), elapsed_msec);
/* check for events that may occur during query execution */
[parent: aeb54176335c]