Re: Aggregate working on ordered data

From: Christoph Dalitz <christoph(dot)dalitz(at)hs-niederrhein(dot)de>
To: "Peter Darley" <pdarley(at)kinesis-cem(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Aggregate working on ordered data
Date: 2003-01-03 08:18:30
Message-ID: 20030103091830.07723fb3.christoph.dalitz@hs-niederrhein.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2 Jan 2003 12:15:27 -0800
"Peter Darley" <pdarley(at)kinesis-cem(dot)com> wrote:
>
> Here is a Median function that was written by Stephen Dobson and updated a
> bit by myself. It's not terribly slow, but could probably be faster. If
> you make any improvements to it, please return it to the list. It is
> actually built of two functions that both need to exist. The comments are
> in a state if disrepair.
>
Thanks for the hint containing the median implementation given in the
"interactive docs". I have added my 2 Euros as a "doc note" on
http://www.postgresql.org/idocs/index.php?sql-createaggregate.html

Meanwhile I have written an own implementation using a "local temporary table"
that is filled in the "sfunc" and aggregated in the final function.

As I plan to assign this as an exercise to my students, I have not attached
the solution to this (public) email.
If you are interested in the function, please contact me directly so that I can
send it to you.

Christoph Dalitz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lincoln Yeoh 2003-01-03 08:20:38 Re: no space left on device
Previous Message Ron Peterson 2003-01-03 04:49:43 ident inconsistency