tuanhoanganh <[EMAIL PROTECTED]> writes:
> I call it by command
> select temp.rowfromarray(string_to_array('1,2,3,4,5', ','));
> but it have error
> ERROR:  set-valued function called in context that cannot accept a set

You need to say
        select * from temp.rowfromarray(string_to_array('1,2,3,4,5', ','));

plpgsql functions returning SETOF have to be called within the FROM
clause of a SELECT.

                        regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to