Re: plperl Safe restrictions - Mailing list pgsql-hackers

From Jon Jensen
Subject Re: plperl Safe restrictions
Date
Msg-id Pine.LNX.4.58.0410141948590.1268@louche.swelter.net
Whole thread Raw
In response to Re: plperl Safe restrictions  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Thu, 14 Oct 2004, Andrew Dunstan wrote:

> >That makes sense. Allowing "rand" would be nice too.
> 
> You can now - it's part of :base_math.

Oh, ok. I saw it's not included in :base_core despite being in :base_math, 
but didn't realize explicitly including :base_math would bring it back.

> What we should do, however, is disallow is calling srand, since pg goes
> to quite a bit of trouble to seed the PRNG.

That sounds reasonable.

Jon

-- 
Jon Jensen
End Point Corporation
http://www.endpoint.com/
Software development with Interchange, Perl, PostgreSQL, Apache, Linux, ...


pgsql-hackers by date:

Previous
From: David Helgason
Date:
Subject: Re: plperl Safe restrictions
Next
From: Bruce Momjian
Date:
Subject: Re: [BUGS] BUG #1270: stack overflow in thread in fe_getauthname