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

Re: shared_preload_libraries support on Win32?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: korryd(at)enterprisedb(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: shared_preload_libraries support on Win32?
Date: 2007-01-29 16:32:57
Message-ID: 11206.1170088377@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
<korryd(at)enterprisedb(dot)com> writes:
> It appears that the libraries listed in shared_preload_libraries will
> *not* be inherited by spawned backends on Win32 platforms.

Well, yeah, because it's a fork/exec on that platform.

> Should we just call process_shared_preload_libraries() after calling
> read_nondefault_variables() (in SubPostmasterMain())?

I don't entirely see the point.  The value of shared_preload_libraries
is to avoid paying per-process overhead to load the libraries, and that
benefit is already lost in a fork/exec world.  Might as well just let
the libraries be loaded when and if needed.

I think we've failed to document that shared_preload_libraries doesn't
work on Windows, which is an oversight.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2007-01-29 16:53:51
Subject: Re: shared_preload_libraries support on Win32?
Previous:From: korrydDate: 2007-01-29 16:25:48
Subject: shared_preload_libraries support on Win32?

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