Re: setof record "out" syntax and returning records

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: setof record "out" syntax and returning records
Дата
Msg-id 13472.1200864884@sss.pgh.pa.us
обсуждение исходный текст
Ответ на setof record "out" syntax and returning records  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список pgsql-general
Ivan Sergio Borgonovo <mail@webthatworks.it> writes:
> I thought I could write something like
> create or replace testA(out setof record) as...
> but it seems I can't.

No, you can't.  Write

create or replace testA() returns setof record as...

instead.  "setof" is only allowed in the RETURNS clause --- else we'd
have to figure out what it means to attach "setof" to some OUT
parameters and not others.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: postgresql source build instructions for ubuntu 7.04
Следующее
От: Greg Smith
Дата:
Сообщение: Re: postgres.org src build vs. enterprisedb installer