| From: | Raymond O'Donnell <rod(at)iol(dot)ie> |
|---|---|
| To: | Cesar Alvarez <c(dot)alvarezx66(at)gmail(dot)com> |
| Cc: | Reg Me Please <regmeplease(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: PIPELINED Functions |
| Date: | 2007-11-09 15:40:47 |
| Message-ID: | 47347F7F.6030702@iol.ie |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)iol(dot)ie
---------------------------------------------------------------
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-11-09 15:59:14 | Re: "Resurrected" data files - problem? |
| Previous Message | Cesar Alvarez | 2007-11-09 15:32:44 | Re: PIPELINED Functions |