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

pgsql: Tidy up and refactor plperl.c.

From: adunstan(at)postgresql(dot)org (Andrew Dunstan)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Tidy up and refactor plperl.c.
Date: 2010-01-09 02:40:50
Message-ID: (view raw or whole thread)
Lists: pgsql-committerspgsql-hackers
Log Message:
Tidy up and refactor plperl.c.

- Changed MULTIPLICITY check from runtime to compiletime.
    No loads the large Config module.
- Changed plperl_init_interp() to return new interp
    and not alter the global interp_state
- Moved plperl_safe_init() call into check_interp().
- Removed plperl_safe_init_done state variable
    as interp_state now covers that role.
- Changed plperl_create_sub() to take a plperl_proc_desc argument.
- Simplified return value handling in plperl_create_sub.
- Changed link in the docs to and tweaked
    wording to clarify that require, not use, is what's blocked.
- Moved perl code in large multi-line C string literal macros
    out to plc_*.pl files.
- Added a utility to convert the plc_*.pl files to
    macros in a perlchunks.h file which is #included
- Simplifed plperl_safe_init() slightly
- Optimized pg_verifymbstr calls to avoid unneeded strlen()s.

Patch from Tim Bunce, with minor editing from me.

Modified Files:
        plperl.sgml (r2.71 -> r2.72)
        GNUmakefile (r1.37 -> r1.38)
        plperl.c (r1.158 -> r1.159)
        plperl.sql (r1.14 -> r1.15)

Added Files:
    pgsql/src/pl/plperl: (r1.1)
        ( (r1.1)
        ( (r1.1)
        ( (r1.1)


pgsql-hackers by date

Next:From: Andrew DunstanDate: 2010-01-09 02:43:34
Subject: Re: Testing plperl<->plperlu interaction
Previous:From: Tom LaneDate: 2010-01-09 02:34:49
Subject: Re: Testing plperl<->plperlu interaction

pgsql-committers by date

Next:From: Tom LaneDate: 2010-01-09 03:25:11
Subject: Re: [COMMITTERS] pgsql: Tidy up and refactor plperl.c.
Previous:From: Michael MeskesDate: 2010-01-08 21:59:47
Subject: Re: [COMMITTERS] pgsql: Also update ChangerLog file.

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