Re: arrays - Mailing list pgsql-hackers

From Tom Lane
Subject Re: arrays
Date
Msg-id 25550.1059352746@sss.pgh.pa.us
Whole thread Raw
In response to arrays  (ivan <iv@psycho.pl>)
Responses Re: arrays  (Joe Conway <mail@joeconway.com>)
Re: arrays  (ivan <iv@psycho.pl>)
List pgsql-hackers
ivan <iv@psycho.pl> writes:
> declaration is setof record array_to_setof ( anyarray);

> i trayed created it like "any" array_to_setof( anyarray) but i had problem
> with select. i also trying write setof_to_array as aggregate, but i have
> problem with returns type , because aggregate cat have 'anyarray' as
> result ;(

I think you want to declare it like this:

create function array_to_setof(anyarray) returns setof anyelement as ...

Joe Conway may already have written something like this --- look in his
contrib modules.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Jenny -"
Date:
Subject: granularity of locks in postgresql
Next
From: Tom Lane
Date:
Subject: Re: Make clean fails