Re: [PATCHES] WIP 2 interpreters for plperl - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: [PATCHES] WIP 2 interpreters for plperl
Date
Msg-id 20061121101357.GA7205@svana.org
Whole thread Raw
In response to Re: [PATCHES] WIP 2 interpreters for plperl  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Mon, Nov 20, 2006 at 04:14:34PM -0500, Andrew Dunstan wrote:
> Jim Buttafuoco wrote:
> >I might be one of the ones who depends on the same interpreter.  In your
> >new
> >scheme, the _SHARED hash will only be shared between like interpreters,
> >correct?  This is going to force me to switch all of my perl code to use
> >the
> >plperlu interpreter :(
>
> Yes. Sorry, but I can't see any way around it. If anyone can suggest one
> then speak up loudly ASAP.

Since the stuff plperlu should be small and self contained, you just
need to set it up so all the data needed by the plperlu function is
passed as a parameter. I suppose we'd need to look at the use case to
see if this is a real obsticle.

I suppose you're not permitted to call other perl functions directly
with \%_SHARED as a parameter, right?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [PATCHES] WIP 2 interpreters for plperl
Next
From: Martijn van Oosterhout
Date:
Subject: Re: [GENERAL] Client SSL validation using root.crt