Re: First feature patch for plperl - draft [PATCH] - Mailing list pgsql-hackers

From Jeff
Subject Re: First feature patch for plperl - draft [PATCH]
Date
Msg-id D5304934-DE14-4171-80BD-4CEFF7B35FCB@torgo.978.org
Whole thread Raw
In response to Re: First feature patch for plperl - draft [PATCH]  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Dec 4, 2009, at 1:44 PM, Andrew Dunstan wrote:

>
> As is documented, all you have to do is have:
>
>   custom_variable_classes = 'plperl'
>   plperl.use_strict = 'true'
>
> in your config. You only need to put the documented BEGIN block in  
> your function body if you want to do use strict mode on a case by  
> case basis.
>
> We can't allow an unrestricted "use strict;" in plperl functions  
> because it invokes an operation (require) that Safe.pm rightly  
> regards as unsafe.
>

Yeah, saw that in the manual in the plperl functions & arguments page  
(at the bottom).
I think my confusion came up because I'd read the trust/untrusted  
thing which removes the ability to use use/require.

Maybe a blurb or moving that chunk of doc to the trusted/untrusted  
page might make that tidbit easier to find?

--
Jeff Trout <jeff@jefftrout.com>
http://www.stuarthamm.net/
http://www.dellsmartexitin.com/





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: First feature patch for plperl - draft [PATCH]
Next
From: Robert Haas
Date:
Subject: Re: First feature patch for plperl - draft [PATCH]