Re: PIPELINED Functions

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: PIPELINED Functions
Дата
Msg-id 47347F7F.6030702@iol.ie
обсуждение исходный текст
Ответ на Re: PIPELINED Functions  (Cesar Alvarez <c.alvarezx66@gmail.com>)
Список pgsql-general
On 09/11/2007 15:32, Cesar Alvarez wrote:
> the Pipelined is the statement so the functions knows he is returning rows.

Yes, you can write functions returning rows in pl/pgsql - see the docs,
specifically the RETURN NEXT statement. Then the syntax is:

select * from my_function();

- the function takes the place of a table in the SELECT statement.

HTH

Ray.


---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------

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

Предыдущее
От: Cesar Alvarez
Дата:
Сообщение: Re: PIPELINED Functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: "Resurrected" data files - problem?