Re: First feature patch for plperl - draft [PATCH]
От | Jeff |
---|---|
Тема | Re: First feature patch for plperl - draft [PATCH] |
Дата | |
Msg-id | D5304934-DE14-4171-80BD-4CEFF7B35FCB@torgo.978.org обсуждение исходный текст |
Ответ на | Re: First feature patch for plperl - draft [PATCH] (Andrew Dunstan <andrew@dunslane.net>) |
Список | 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 по дате отправления: