Don't write timing output in quiet mode.
authorMagnus Hagander <[email protected]>
Mon, 16 Apr 2007 20:15:53 +0000 (20:15 +0000)
committerMagnus Hagander <[email protected]>
Mon, 16 Apr 2007 20:15:53 +0000 (20:15 +0000)
Merlin Moncure

src/bin/psql/common.c

index 2d92c12d2639a4181f4da883b4144e7bbae639a9..5357016bc41f2949de85d966babad741c8aa5ae5 100644 (file)
@@ -1013,7 +1013,7 @@ SendQuery(const char *query)
        PQclear(results);
 
        /* Possible microtiming output */
-       if (OK && pset.timing)
+       if (OK && pset.timing && !QUIET())
                printf(gettext("Time: %.3f ms\n"), DIFF_MSEC(&after, &before));
 
        /* check for events that may occur during query execution */