Re: shared_preload_libraries support on Win32? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: shared_preload_libraries support on Win32?
Date
Msg-id 23438.1170126622@sss.pgh.pa.us
Whole thread Raw
In response to Re: shared_preload_libraries support on Win32?  (<korryd@enterprisedb.com>)
List pgsql-hackers
<korryd@enterprisedb.com> writes:
>> I see that Korry's patch doesn't do that, but I'm wondering why exactly.
>> In a Unix environment such libraries *would* be propagated into bgwriter
>> and every other postmaster child; is there a reason for the setup on
>> Windows to be different?  In particular, what about autovacuum, which
>> ISTM should be as close to a standard backend as possible?

> I thought about that too...  does autovacuum ever need to re-index?  If
> so, it seems that it would need access to any index functions (for
> function-based indexes) that might reside in a shared_preload_library.

Any ordinary C-language function is not an issue, because its library
will get autoloaded upon use.  AFAICS what we have to think about here
is instrumentation or debugging plugins that someone might wish to have
running in the postmaster's special children.  Maybe there's no such
animal; I'm not sure.  But in the Unix environment they'd be active in
those processes.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] Missing error message on missing ssl-key-files
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Modifying and solidifying contrib