Re: R: complex custom aggregate function - Mailing list pgsql-general

From Scara Maccai
Subject Re: R: complex custom aggregate function
Date
Msg-id 801713.58575.qm@web24608.mail.ird.yahoo.com
Whole thread Raw
In response to complex custom aggregate function  (Scara Maccai <m_lists@yahoo.it>)
Responses R: R: complex custom aggregate function
List 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.





pgsql-general by date:

Previous
From: durumdara
Date:
Subject: Re: PGSQL or other DB?
Next
From: Mohamed
Date:
Subject: Fulltext search configuration