Skip site navigation (1) Skip section navigation (2)

Re: patch to suppress psql timing output in quiet mode

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: patch to suppress psql timing output in quiet mode
Date: 2007-04-16 20:16:42
Message-ID: 4623D9AA.3040601@hagander.net (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Merlin Moncure wrote:
> I noticed that when psql accepts input from stdin or -f (but not -c),
> and timing is set to on in .psqlrc, timing results are printed out to
> stdout even when -q (quiet) is passed in.
> 
> This may not be the perfect solution, but it fixes the problem (I'm
> having problems with bash scripts that are borking on time returned).
> 
> current behavior:
> [root(at)mernix psql]# echo "select 0" | psql -tAq
> 0
> Time: 1.155 ms
> [root(at)mernix psql]# psql -tAqc"select 0"
> 0

Makes sense to me. Applied and backpatched, thanks!

//Magnus

In response to

pgsql-hackers by date

Next:From: Florian G. PflugDate: 2007-04-16 20:16:44
Subject: Re: Hacking on PostgreSQL via GIT
Previous:From: Tom LaneDate: 2007-04-16 19:34:17
Subject: Re: Why xlog stuff is done after the filetruncate op in smgrtruncate?

pgsql-patches by date

Next:From: Zoltan BoszormenyiDate: 2007-04-16 20:54:45
Subject: Re: Re: IDENTITY/GENERATED v36 Re: [PATCHES] Final version of IDENTITY/GENERATED patch
Previous:From: Stefan HuehnerDate: 2007-04-16 19:31:39
Subject: Re: Remove warning about const qualifier

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group