From a648d7100106b9a4b1bb976f897c02b50e481e46 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 16 Apr 2007 20:15:46 +0000 Subject: [PATCH] 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 4e15e0af475..be7f642f476 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.76.2.2 2006/11/22 21:13:11 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.76.2.3 2007/04/16 20:15:46 mha Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -676,7 +676,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 */