Re: Return record on recursive call

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: "Alexander B(dot)" <burbello3000(at)yahoo(dot)com(dot)br>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Return record on recursive call
Date: 2007-05-28 21:40:08
Message-ID: 20070528214007.GA65520@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, May 28, 2007 at 05:06:55PM -0300, Alexander B. wrote:
> I am creating a function that when finished the last level, should
> return for each row.
> I put raise notice to trace and the result is correct, but when I try to
> execute, an error is showed.
>
> "ERRO: wrong record type supplied in RETURN NEXT"
>
> I created other functions the same way and worked, basically using the
> same structure but not recursive.
> Is it different return when using recursive.

It's hard to say what's wrong with your sample code without seeing
it with its surrounding context. Could you post a complete example?
Please reduce the problem to the smallest possible example that
exhibits the undesirable behavior.

This question is a bit off-topic for pgsql-admin; you might get
more help on pgsql-general.

--
Michael Fuhr

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jim Nasby 2007-05-29 01:10:23 Re: increasing of the shared memory does not solve theproblem of "OUT of shared memory"
Previous Message Alexander B. 2007-05-28 20:06:55 Return record on recursive call