Add on_plperl_init and on_plperlu_init to plperl UPDATE 3 [PATCH] - Mailing list pgsql-hackers

From Tim Bunce
Subject Add on_plperl_init and on_plperlu_init to plperl UPDATE 3 [PATCH]
Date
Msg-id 20100205134044.GO52427@timac.local
Whole thread Raw
Responses Re: Add on_plperl_init and on_plperlu_init to plperl UPDATE 3 [PATCH]
Re: Add on_plperl_init and on_plperlu_init to plperl UPDATE 3 [PATCH]
List pgsql-hackers
This is the third update to the fourth of the patches to be split out
from the former 'plperl feature patch 1'.

Changes in this patch:

- Added plperl.on_plperl_init and plperl.on_plperlu_init GUCs
    Both are PGC_SUSET
    SPI functions are not available when the code is run.
    Errors are detected and reported as ereport(ERROR, ...)
    Corresponding documentation and tests for both.

- Renamed plperl.on_perl_init to plperl.on_init

- Improved state management of select_perl_context()
    An error during interpreter initialization will leave
    the state (interp_state etc) unchanged.

- The utf8fix code has been greatly simplified.

- More code comments re PGC_SUSET and no access to SPI functions.

Tim.


Attachment

pgsql-hackers by date:

Previous
From: "Jonathan Bond-Caron"
Date:
Subject: Reading deleted records - PageHeader v3
Next
From: Martin Pihlak
Date:
Subject: Failed assertion during recovery of partial WAL file