Re: PL/pgSQL and SETOF

Поиск
Список
Период
Сортировка
Искать
От
Pavel Stehule
Тема
Re: PL/pgSQL and SETOF
Дата
Msg-id
162867790711301018y3d036823u3b96730c344756da@mail.gmail.com
Ответ на
Re: PL/pgSQL and SETOF (Cultural Sublimation)
Список
Дерево обсуждения
PL/pgSQL and SETOF Cultural Sublimation <cultural_sublimation@yahoo.com>
Re: PL/pgSQL and SETOF "Pavel Stehule" <pavel.stehule@gmail.com>
Re: PL/pgSQL and SETOF Sam Mason <sam@samason.me.uk>
Re: PL/pgSQL and SETOF Cultural Sublimation <cultural_sublimation@yahoo.com>
Re: PL/pgSQL and SETOF "Pavel Stehule" <pavel.stehule@gmail.com>
Re: PL/pgSQL and SETOF Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: PL/pgSQL and SETOF "Pavel Stehule" <pavel.stehule@gmail.com>
Re: PL/pgSQL and SETOF Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: PL/pgSQL and SETOF "Pavel Stehule" <pavel.stehule@gmail.com>
Re: PL/pgSQL and SETOF "Merlin Moncure" <mmoncure@gmail.com>
Re: PL/pgSQL and SETOF "Pavel Stehule" <pavel.stehule@gmail.com>
Re: PL/pgSQL and SETOF "Merlin Moncure" <mmoncure@gmail.com>
On 30/11/2007, Cultural Sublimation  wrote:
> > I would guess you're calling it like:
> >
> >   SELECT get_items2();
> >
> > whereas, you should call set returning functions like:
> >
> >   SELECT * FROM get_items2();
>
> Hi,
>
> Yeah, that was the problem -- thanks!
>
> But still on that subject: is my version of get_items2 the simplest
> that is possible in PL/pgSQL?  It seems awfully verbose compared to
> the SQL version...
>

no. Your simplest version is historic relict and is available only in
sql language. I am not sure, maybe in C language too.

Pavel



> Regards,
> C.S.
>
>
>
>       ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
В списке pgsql-general по дате отправления
От: Cultural Sublimation
Дата:
Сообщение: Re: PL/pgSQL and SETOF
От: Jeff Davis
Дата:
FAQ