ivan <[EMAIL PROTECTED]> 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 ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]