postgres.git / summary / log / commit / refs

commit    0fd9735296ed75472e8a9cc601f2933cf58b0a98
Author:   Magnus Hagander <magnus@hagander.net>
Date:     Mon Apr 16 20:15:53 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 90eb0238d7a..b9b652b37b1 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.95.4.2 2006/11/22 21:13:04 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.95.4.3 2007/04/16 20:15:53 mha Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -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 */ [parent: 47d61a572ff1]