pgsql: Use standard librart sqrt function in pg_stat_statements

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use standard librart sqrt function in pg_stat_statements
Date: 2015-03-28 13:32:29
Message-ID: E1Ybqqj-0008N3-TT@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use standard librart sqrt function in pg_stat_statements

The stddev calculation included a faster but unportable sqrt function.
This is not worth the extra effort, and won't work everywhere. If the
standard library function is good enough for the SQL function it
should be good enough here too.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/cfe12763c32437bc708a64ce88a90c7544f16185

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

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2015-03-28 15:12:07 pgsql: Add a pager_min_lines setting to psql
Previous Message Heikki Linnakangas 2015-03-28 13:12:04 pgsql: Add index-only scan support to inet GiST opclass.