Re: R: complex custom aggregate function

From: Scara Maccai <m_lists(at)yahoo(dot)it>
To: Paolo Saudin <paolo(at)ecometer(dot)it>, pgsql-general(at)postgresql(dot)org
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: R: complex custom aggregate function
Date: 2009-02-02 09:36:00
Message-ID: 801713.58575.qm@web24608.mail.ird.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Paolo Saudin wrote:
> For that purpose, a sliding mean calculation I use the following
>
> CREATE TABLE tbl_ayas
> (
> fulldate timestamp without time zone NOT NULL,
> id_1 real, -- temperature
> id_2 real, -- pressure
> ..........
> CONSTRAINT tbl_ayas_pkey PRIMARY KEY (fulldate)
> ) WITH (OIDS=FALSE);
>
> [...]

> Select perl_sliding_mean(0,0,0,0,'f','t');
> SELECT perl_sliding_mean(0," id_1 ", 8, 6, 'f', 'f') AS numeric), 1) AS
> "ayas_temperature",
> perl_sliding_mean(1," id_2 ", 8, 6, 'f', 'f') AS numeric), 1) AS
> "ayas_pressure"

I don't understand: how can you be sure that data is passed to the function ordered by "fulldate"?
Thank you.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mohamed 2009-02-02 10:36:59 Fulltext search configuration
Previous Message durumdara 2009-02-02 08:23:11 Re: PGSQL or other DB?