Re: patch to suppress psql timing output in quiet mode - Mailing list pgsql-patches

From Magnus Hagander
Subject Re: patch to suppress psql timing output in quiet mode
Date
Msg-id 4623D9AA.3040601@hagander.net
Whole thread Raw
In response to patch to suppress psql timing output in quiet mode  ("Merlin Moncure" <mmoncure@gmail.com>)
List pgsql-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@mernix psql]# echo "select 0" | psql -tAq
> 0
> Time: 1.155 ms
> [root@mernix psql]# psql -tAqc"select 0"
> 0

Makes sense to me. Applied and backpatched, thanks!

//Magnus

pgsql-patches by date:

Previous
From: Stefan Huehner
Date:
Subject: Re: Remove warning about const qualifier
Next
From: "Simon Riggs"
Date:
Subject: Re: scrollable cursor support without MOVE statement