Thread: Re: preload libraries patch [was: [GENERAL] hexadecimal to decimal]

Re: preload libraries patch [was: [GENERAL] hexadecimal to decimal]

From
Tom Lane
Date:
Joe Conway <mail@joeconway.com> writes:
> Attached is a patch that:
> 1) fixes the behavior of preload_libraries
> 2) adds an exported xxx_init() function to plperl, pltcl, plpython, and
>     plpgsql
> 3) updates the documentation for the changes

As coded, this will cause pltcl to try to execute the unknown-module
load on every pltcl function call :-(.  You really need two bits of
state if you are going to have separate postmaster-time and backend-time
initialization.

Will fix and commit.

            regards, tom lane

Re: preload libraries patch [was: [GENERAL] hexadecimal to decimal]

From
Joe Conway
Date:
Tom Lane wrote:
> As coded, this will cause pltcl to try to execute the unknown-module
> load on every pltcl function call :-(.  You really need two bits of
> state if you are going to have separate postmaster-time and backend-time
> initialization.

Hmmm, I see your point :(. Sorry about that!

> Will fix and commit.

Thanks,

Joe