How to handle nested record data.

Поиск
Список
Период
Сортировка
От yi huang
Тема How to handle nested record data.
Дата
Msg-id CAHU7rYYuZFvGyaN-GsCQnZ09EdUwd75WY1JsQT4C45inr-wa6A@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to handle nested record data.  (Pavel Stehule <pavel.stehule@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Alan Gutierrez
Дата:
Сообщение: Re: Escaping `psql --variable`
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: How to handle nested record data.