Re: \timing interval

From: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
To: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: \timing interval
Date: 2016-07-09 20:28:02
Message-ID: CADkLM=eodJ79vSadOyejUmFYWghmkJHa0E6KOSi-gwd-Soc4nA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jul 9, 2016 at 4:00 PM, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
wrote:

> >>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>
> > Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> writes:
> >> I'm not quite sure what you mean by wanting to do arithmetic on the
> >> numbers. My phrasing of the problem is that after a long query, you
> >> might get output like this:
> >> Time: 1234567.666 ms
> >> which is pretty useless.
>
> Tom> What I mean by that is that not infrequently, I'll run the same
> Tom> query several times and then want to average the results. That's
> Tom> easy with awk or similar scripts as long as the numbers are in
> Tom> straight decimal.
>
> Tom> I don't mind if we provide a way to print in Babylonian-inspired
> Tom> notation(s) as well, but I'm going to be seriously annoyed if
> Tom> that's the only way to get the output.
>
> How about
>
> Time: 1234567.666 ms (20m 34.6s)
>
>
That'd be fine too, it's not like we're doing anything with the rest of
that line.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2016-07-09 20:46:32 remove checkpoint_warning
Previous Message Corey Huinker 2016-07-09 20:27:06 Re: \timing interval