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

Add on_perl_init and proper destruction to 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: Add on_perl_init and proper destruction to plperl [PATCH]
Date: 2010-01-14 22:11:29
Message-ID: 20100114221128.GL8024@timac.local (view raw or flat)
Thread:
Lists: pgsql-hackers
This is the third of the patches to be split out from the former 'plperl
feature patch 1'.

Changes in this patch:

- Added plperl.on_perl_init GUC for DBA use (PGC_SIGHUP)
    SPI functions are not available when the code is run.

- Added normal interpreter destruction behaviour
    END blocks, if any, are run then objects are
    destroyed, calling their DESTROY methods, if any.
    SPI functions will die if called at this time.

Tim.

Attachment: plperl-initend.patch
Description: text/x-patch (14.9 KB)

Responses

pgsql-hackers by date

Next:From: Heikki LinnakangasDate: 2010-01-14 22:19:48
Subject: Re: Streaming replication, retrying from archive
Previous:From: Alex HunsakerDate: 2010-01-14 21:24:16
Subject: Re: Source code for pg_bulkload

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