Re: can Function return a row ???

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tahira Aslam <tahira_aslam(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: can Function return a row ???
Date: 2002-05-13 15:00:23
Message-ID: 3CDFD507.7030005@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message murphy pope 2002-05-13 15:20:27 Re: Why is ALLOW_ABSOLUTE_DBPATHS unsafe?
Previous Message Uros Gruber 2002-05-13 14:54:16 don't know how to get SELECT