Re: Proposal: OUT parameters for plpgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposal: OUT parameters for plpgsql
Дата
Msg-id 2726.1111446951@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Proposal: OUT parameters for plpgsql  (Greg Stark <gsstark@mit.edu>)
Ответы Re: Proposal: OUT parameters for plpgsql  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> Do other databases not allow you to specify a return value in addition to the
> OUT and INOUT parameters?

Oracle discourages OUT parameters in a function, so PL/SQL at least
shouldn't be a big source of cases where that's a problem.

> I would have expected the return value to be an extra column added to the
> record.

I'd prefer not to do that, because having a "return type" that's
different from the true return type of the function (ie the RECORD)
is going to cause untold amounts of confusion.
        regards, tom lane


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Avoiding unnecessary writes during relation drop and
Следующее
От: Gavin Sherry
Дата:
Сообщение: Re: Proposal: OUT parameters for plpgsql