Re: can Function return a row ??? - Mailing list pgsql-general

From Joe Conway
Subject Re: can Function return a row ???
Date
Msg-id 3CDFD507.7030005@joeconway.com
Whole thread Raw
In response to Re: can Function return a row ???  (Tahira Aslam <tahira_aslam@yahoo.com>)
List pgsql-general
Tahira Aslam wrote:
>   Thanks Joe for your timly help..but still i have a little confusion.I
> read postgresql 7.2 Documentation for PL/pgsql (chapter 23)...its about
> "Cursors" but it says something like this also
>
> *"A more interesting possibility is that a function can return a
> reference to a cursor it has set up,allowing the caller to read the
> rows. This provides one way of returning a rowset from a function" *
>
> plz I need further guidance in this regard..
>
> Thanks
>
> Tahira Aslam

I don't think there is an example in the 7.2 docs, but see:
http://developer.postgresql.org/docs/postgres/plpgsql-cursors.html

I think this also works in 7.2.

HTH,

Joe



pgsql-general by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Trigger performance
Next
From: Oliver Elphick
Date:
Subject: Re: Use of OIDS as primary keys