Re: PIPELINED Functions - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: PIPELINED Functions
Date
Msg-id 47347F7F.6030702@iol.ie
Whole thread Raw
In response to Re: PIPELINED Functions  (Cesar Alvarez <c.alvarezx66@gmail.com>)
List 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 by date:

Previous
From: Cesar Alvarez
Date:
Subject: Re: PIPELINED Functions
Next
From: Tom Lane
Date:
Subject: Re: "Resurrected" data files - problem?