Re: strange bug in plperl

From: ggray <ggray(at)bird(dot)cris(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: strange bug in plperl
Date: 2004-07-06 09:47:25
Message-ID: 40EA752D.2070103@bird.cris.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Atached patch fix the problem.

Serg

Andrew Dunstan wrote:

>
> Can anyone suggest why I might be seeing this effect (each notice
> comes out once per row plus once per function call)
>
> thanks
>
> andrew
>
> andrew=# create function tstset() returns setof tst language plperl as $$
> andrew$# elog(NOTICE,"tstset called");
> andrew$# return [{i=>1,v=>"one"},{i=>2,v=>"two"}];
> andrew$# $$;
> CREATE FUNCTION
> andrew=# select * from tstset();
> NOTICE: tstset called
> NOTICE: tstset called
> NOTICE: tstset called
> i | v ---+-----
> 1 | one
> 2 | two
> (2 rows)
>
> _______________________________________________
> Plperlng-devel mailing list
> Plperlng-devel(at)pgfoundry(dot)org
> http://pgfoundry.org/mailman/listinfo/plperlng-devel
>
>

Attachment Content-Type Size
plperl.c.patch text/plain 1.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Najib Abi Fadel 2004-07-06 10:23:27 Re: creating a complex aggregate function
Previous Message Andreas Pflug 2004-07-06 09:16:04 Re: More thoughts on drop tablespace