Re: How to return a modified array from a user-define function...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "D(dot) Jay Newman" <jay(at)sprucegrove(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to return a modified array from a user-define function...
Date: 2000-08-19 05:48:05
Message-ID: 22326.966664085@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"D. Jay Newman" <jay(at)sprucegrove(dot)com> writes:
> I would like to create a standard deviation function using the basic
> SQL statements "CREATE AGGREGATE" and "CREATE FUNCTION" using Postgres 7.0.2.

> I can't find a way to return a modified array.

It's possible to do this in pltcl but I don't think there is any syntax
for constructing array values on-the-fly in SQL or plpgsql functions.
(A definite shortcoming, that; should have a TODO item for it.)

BTW, stddev/variance are in current sources for 7.1.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message luc00 2000-08-19 06:00:23 any C++ GUI for PgSql [like pgAdmin] ?
Previous Message ellen 2000-08-19 05:43:02 Is tab whitespace?