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

Add on_trusted_init and on_untrusted_init 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_trusted_init and on_untrusted_init to plperl [PATCH]
Date: 2010-01-15 00:35:06
Message-ID: 20100115003506.GM8024@timac.local (view raw or flat)
Thread:
Lists: pgsql-hackers
This is the fourth of the patches to be split out from the former
'plperl feature patch 1'.

Changes in this patch:

- Adds plperl.on_trusted_init and plperl.on_untrusted_init GUCs
    Both are PGC_USERSET.
    SPI functions are not available when the code is run.
    Errors are detected and reported as ereport(ERROR, ...)

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

- The utf8fix code has been greatly simplified.

Tim.

Attachment: plperl-userinit.patch
Description: text/x-patch (12.2 KB)

Responses

pgsql-hackers by date

Next:From: Andrew DunstanDate: 2010-01-15 00:39:09
Subject: GUC failure on exception
Previous:From: Andres FreundDate: 2010-01-15 00:08:41
Subject: Re: Hot Standy introduced problem with query cancel behavior

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