From: | Andy Colson <andy(at)squeakycode(dot)net> |
---|---|
To: | Alex - <aintokyo(at)hotmail(dot)com>, PostgreSQL <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: pl/perl setof function |
Date: | 2010-01-13 19:26:17 |
Message-ID: | 4B4E1E59.7000500@squeakycode.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 1/13/2010 12:20 PM, Alex - wrote:
> Hi,
> i have a PL/PERL RETURN SETOF function which processes a few 10k records.
> The processing takes quite some time and in order to display progress
> I use a return_next after every few thousand records.
>
> However, the function returns all messages when it completes and exists
> which is not really what i want. I also tried the elog NOTICE but then I
> only get the messages back to the psql.
>
> I am calling the function from a perl script and would like to catch
> these progress messages.
>
> Is there any way to solve my problem?
>
> Thanks
> Alex
>
In the doc's you'll see that return_next copies the record into an
in-memory table which is then returned once the storedproc is finished.
Not sure how raise works though.
-Andy
From | Date | Subject | |
---|---|---|---|
Next Message | Andy Colson | 2010-01-13 19:39:06 | Re: pl/perl setof function |
Previous Message | Joshua D. Drake | 2010-01-13 19:00:59 | PgEast CFP (second call) |