Skip site navigation (1) Skip section navigation (2)

Re: Return record on recursive call

From: Adam Radłowski <adamr(at)informatyka(dot)gdansk(dot)pl>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: "Alexander B(dot)" <burbello3000(at)yahoo(dot)com(dot)br>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Return record on recursive call
Date: 2007-05-29 01:33:19
Message-ID: 465B82DF.1030908@informatyka.gdansk.pl (view raw or flat)
Thread:
Lists: pgsql-admin
For info only (it's not exactly this same problem):
This function looks like replacement of scroll cursor functionality. 
Cursors are working without problems.

Adamn

Michael Fuhr pisze:
> 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.
> 

In response to

pgsql-admin by date

Next:From: Jon ColversonDate: 2007-05-29 04:10:45
Subject: Attempt to re-archive existing WAL logs after restoring from backup
Previous:From: Jim NasbyDate: 2007-05-29 01:19:09
Subject: Re: Performance Monitor

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group