pgsql: Fix portability issues with stddev in pg_stat_statements

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix portability issues with stddev in pg_stat_statements
Date: 2015-03-27 21:33:46
Message-ID: E1Ybbsw-0001i4-La@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix portability issues with stddev in pg_stat_statements

Stddev is calculated on the fly, and the code in commit 717f70953264 was
using Float8GetDatumFast() inappropriately to convert the result to a
Datum. Mea culpa. It now uses Float8GetDatum().

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/735cd6128a6a401671126443a9af4324932a38d6

Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-03-27 21:39:01 pgsql: Add index-only scan support to btree_gist.
Previous Message Andrew Dunstan 2015-03-27 19:48:58 pgsql: Add stats for min, max, mean, stddev times to pg_stat_statements