Re: First feature patch for plperl - draft [PATCH] - Mailing list pgsql-hackers

From Tim Bunce
Subject Re: First feature patch for plperl - draft [PATCH]
Date
Msg-id 20091204194018.GC89699@timac.local
Whole thread Raw
In response to Re: First feature patch for plperl - draft [PATCH]  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: First feature patch for plperl - draft [PATCH]
Re: First feature patch for plperl - draft [PATCH]
List pgsql-hackers
On Fri, Dec 04, 2009 at 02:05:28PM -0500, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
> > So, do we look for another way to provide the functionality besides
> > having a GUC, or is the functionality itself bad?
> 
> I don't think we want random Perl code running inside the postmaster,
> no matter what the API to cause it is.  I might hold my nose for "on
> load" code if it can only run in backends, though I still say that
> it's a badly designed concept because of the uncertainty about who
> will run what when.

Robert's comparison with mod_perl is very apt. Preloading code gives
dramatic performance gains in production situations where there's a
significant codebase and connections are frequent.

The docs for plperl.on_perl_init could include a section relating to
it's use with shared_preload_libraries. That could document any issues
and caveats you feel are important.

Tim.


pgsql-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: PostgreSQL Release Support Policy
Next
From: Bruce Momjian
Date:
Subject: Re: Block-level CRC checks