Re: plperl Safe restrictions

From: Jon Jensen <jon(at)endpoint(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: plperl Safe restrictions
Date: 2004-10-14 19:51:04
Message-ID: Pine.LNX.4.58.0410141948590.1268@louche.swelter.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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, ...

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Brown 2004-10-14 20:25:31 Re: First set of OSDL Shared Mem scalability results, some wierdness ...
Previous Message David Helgason 2004-10-14 19:46:23 Re: plperl Safe restrictions

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-10-14 20:22:46 Re: cast pid_t to int when using *printf
Previous Message David Helgason 2004-10-14 19:46:23 Re: plperl Safe restrictions