From: Petr Jelinek <petr@2ndquadrant.com>
To: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add stats for min, max, mean, stddev times to pg_stat_statements
Date: Sat, 28 Mar 2015 00:07:18 +0100
Message-ID: <5515E2A6.8010904@2ndquadrant.com> (raw)
In-Reply-To: <5515D932.8020305@dunslane.net>
References: <E1YbaFW-0008VB-AD@gemulon.postgresql.org>
<26457.1427493201@sss.pgh.pa.us>
<5515D932.8020305@dunslane.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On 27/03/15 23:26, Andrew Dunstan wrote:
>
> On 03/27/2015 05:53 PM, Tom Lane wrote:
>> Andrew Dunstan <andrew@dunslane.net> writes:
>>> Add stats for min, max, mean, stddev times to pg_stat_statements.
>> The buildfarm is quite unhappy with this patch. Kinda looks like
>> it was never tested on 32-bit machines.
>>
>>
>
>
> I have committed a fix which is turning the buildfarm back to green.
>
> However, it is moaning about the code in the sqrtd() function. I'm
> wondering if we shouldn't just rip that out and use the library sqrt()
> function. It's not called for every statement processed, only each time
> the function is called (for each row).
>
Or you could change the long long int to int64.
But in general I wouldn't be too much against ripping it off, it's only
a bit of CPU when reading the stats...
--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: petr@2ndquadrant.com, andrew@dunslane.net, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add stats for min, max, mean, stddev times to pg_stat_statements
In-Reply-To: <5515E2A6.8010904@2ndquadrant.com>
References: <E1YbaFW-0008VB-AD@gemulon.postgresql.org> <26457.1427493201@sss.pgh.pa.us> <5515D932.8020305@dunslane.net> <5515E2A6.8010904@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox