Weighted Stats - Mailing list pgsql-hackers

From David Fetter
Subject Weighted Stats
Date
Msg-id 20151102234644.GA31118@fetter.org
Whole thread Raw
Responses Re: Weighted Stats  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
Folks,

I'd like to add weighted statistics to PostgreSQL.  While the included
weighted_avg() is trivial to calculate using existing machinery, the
included weighted_stddev_*() functions are not.

I've only done the float8 versions, but if we decide to move forward,
I'd be delighted to add the rest of the numeric types and maybe others
as make sense.

What say?

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: WIP: Rework access method interface
Next
From: YuanyuanLiu
Date:
Subject: Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service