Re: Help trying to write my first plpgsql function...

From: Bjørn T Johansen <btj(at)havleik(dot)no>
To: depesz(at)gmail(dot)com
Cc: s(dot)gnanavel(at)gmail(dot)com, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Help trying to write my first plpgsql function...
Date: 2005-09-15 10:22:34
Message-ID: 43294B6A.4090706@havleik.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yes, I did and I found an answer... :)

But I am trying to use this function in a report designer and the result from the
select is in the way of the real data from the fetch... Is there a way around this?

BTJ

hubert depesz lubaczewski wrote:
> On 9/15/05, *Bjørn T Johansen* <btj(at)havleik(dot)no <mailto:btj(at)havleik(dot)no>>
> wrote:
>
> But this function does not do what I need it to do... I want x rows
> returned, but
> instead I just get a stringname...
> Either how do I use this name or how do I return x rows?
>
>
> for refcursors - just use returned name in subsequent "FETCH FROM
> <this_name>";
>
> for set returning functions you have to declare them as "returns set of
> SOMETHING"
> and then use return next SOMETHING;
> insetead of return.
>
> read the docs - it's quite good reading.
>
> depesz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Teodor Sigaev 2005-09-15 10:25:36 Re: TSearch2 snowball version error
Previous Message Tino Wildenhain 2005-09-15 10:06:06 Re: Copy DataBases Server to server