Re: Found small issue with OUT params

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Found small issue with OUT params
Дата
Msg-id 8451.1127936819@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Found small issue with OUT params  (Tony Caduto <tony_caduto@amsoftwaredesign.com>)
Ответы Re: Found small issue with OUT params  (Tony Caduto <tony_caduto@amsoftwaredesign.com>)
Список pgsql-hackers
Tony Caduto <tony_caduto@amsoftwaredesign.com> writes:
> If I call it like this:
> select * from FIND_USER_SOCKET_BYNAME('juser');
> I would expect to get back 1 value with the name of the OUT param 
> (OUT_SOCKET_ADDRESS). 
> However it comes back with the name of the function

This is intentional, for compatibility with the pre-existing behavior
with functions in FROM.  A function that isn't returning a record is
effectively declared asFROM foo(...) AS foo(foo)
while a function that does return a record type gives youFROM foo(...) AS foo(col1, col2)
        regards, tom lane


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

Предыдущее
От: Tony Caduto
Дата:
Сообщение: Found small issue with OUT params
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [DOCS] Added documentation about caching, reliability