Skip site navigation (1) Skip section navigation (2)

Re: Package namespace and Safe init cleanup for plperl [PATCH]

From: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
Subject: Re: Package namespace and Safe init cleanup for plperl [PATCH]
Date: 2010-01-25 19:53:26
Message-ID: 20100125195326.GD78082@timac.local (view raw or flat)
Thread:
Lists: pgsql-hackers
On Fri, Jan 15, 2010 at 04:02:02AM +0000, Tim Bunce wrote:
> This is the final plperl patch in the series from me.
> 
> Changes in this patch:
> 
> - Moved internal functions out of main:: namespace
>     into PostgreSQL::InServer and PostgreSQL::InServer::safe
> 
> - Restructured Safe compartment setup code
>     to generalize and separate the data from the logic.
> 
> Neither change has any user visible effects.

This is a revised version of the patch with the following additional
changes:

- Further generalized the 'what to load into Safe compartment' logic.

- Added the 'warnings' pragma to the list of modules to load into Safe.
  So plperl functions can now "use warnings;" - added test for that.

- Added 'use 5.008001;' to plc_perlboot.pl as a run-time check to
  complement the configure-time check added by Tom Lane recently.

Tim.

Attachment: plperl-nscleanup2.patch
Description: text/x-patch (9.1 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Peter EisentrautDate: 2010-01-25 19:58:17
Subject: default pg_hba.conf tabulation
Previous:From: Ivan Sergio BorgonovoDate: 2010-01-25 19:50:51
Subject: C function accepting/returning cstring vs. text

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group