X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 24F43329E5C for ; Fri, 10 Sep 2004 22:48:44 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28322-01 for ; Fri, 10 Sep 2004 21:48:36 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id E9429329E58 for ; Fri, 10 Sep 2004 22:48:37 +0100 (BST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i8ALmU129696; Fri, 10 Sep 2004 17:48:30 -0400 (EDT) From: Bruce Momjian Message-Id: <200409102148.i8ALmU129696@candle.pha.pa.us> Subject: Re: aggregate function stddev In-Reply-To: <200409091137.19204.josh@agliodbs.com> To: Josh Berkus Date: Fri, 10 Sep 2004 17:48:30 -0400 (EDT) Cc: Kemin Zhou , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/76 X-Sequence-Number: 18922 Is this a TODO? --------------------------------------------------------------------------- Josh Berkus wrote: > Kemin, > > > Just noticed that the postgres stddev is the stddev_sample formula. > > There are two different ways to calculate this value. > > Their difference is very small with large samle size. It would be nice > > to distinguish the two different versions. > > Note sent to PGSQL-DOCS. > > > I also noticed that oracle has stddev_sample and stddev_population. > > This is just a wish list. > > Were you aware that in PostgreSQL you can write your own aggregates? It's > relatively easy to do. > > -- > Josh Berkus > Aglio Database Solutions > San Francisco > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073