]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Don't write timing output in quiet mode.
authorMagnus Hagander <magnus@hagander.net>
Mon, 16 Apr 2007 20:16:02 +0000 (20:16 +0000)
committerMagnus Hagander <magnus@hagander.net>
Mon, 16 Apr 2007 20:16:02 +0000 (20:16 +0000)
Merlin Moncure

src/bin/psql/common.c

index e5b545a4cfa85da9d08043bd9b591e33b5fde241..d24acb9338c4e7637917affcd58309a5414db17a 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2000-2005, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.110.2.4 2006/11/22 21:12:57 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.110.2.5 2007/04/16 20:16:02 mha Exp $
  */
 #include "postgres_fe.h"
 #include "common.h"
@@ -1109,7 +1109,7 @@ SendQuery(const char *query)
        PQclear(results);
 
        /* Possible microtiming output */
-       if (OK && pset.timing)
+       if (OK && pset.timing && !QUIET())
                printf(_("Time: %.3f ms\n"), DIFF_MSEC(&after, &before));
 
        /* check for events that may occur during query execution */