Add on_perl_init and proper destruction to plperl UPDATED [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 UPDATED [PATCH]
Date: 2010-01-28 15:46:12
Message-ID: 20100128154611.GC38673@timac.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

This is an updated version of the third of the patches to be split out
from the former 'plperl feature patch 1'.

It includes changes following discussions with Tom Lane and others.

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 interpreter destruction behaviour
Hooked via on_proc_exit().
Only has any effect for normal shutdown.
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 Content-Type Size
plperl-initend-procexit2.patch text/x-patch 16.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-01-28 15:46:44 Re: [BUG?] strange behavior in ALTER TABLE ... RENAME TO on inherited columns
Previous Message Tom Lane 2010-01-28 15:39:33 Re: Add on_perl_init and proper destruction to plperl [PATCH]