How to handle nested record data. - Mailing list pgsql-general

From yi huang
Subject How to handle nested record data.
Date
Msg-id CAHU7rYYuZFvGyaN-GsCQnZ09EdUwd75WY1JsQT4C45inr-wa6A@mail.gmail.com
Whole thread Raw
Responses Re: How to handle nested record data.
List pgsql-general
I'm porting a oracle function to postgresql, which has signature like this:

  FUNCTION foo
     ( seq IN varchar
     , somerow OUT SomeTable
     , otherinfo OUT varchar
     )

It's easy to port this function itself to postgresql, but i have problem to execute this function and assign the results into variables:

  SELECT (foo(seq)).* INTO (v_somerow, v_otherinfo);

It complains v_somerow can not be row type.

How to handle the result of function foo?

Best regards.
YiHuang.

pgsql-general by date:

Previous
From: Alan Gutierrez
Date:
Subject: Re: Escaping `psql --variable`
Next
From: Pavel Stehule
Date:
Subject: Re: How to handle nested record data.