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

Re: shared_preload_libraries support on Win32?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: korryd(at)enterprisedb(dot)com
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: shared_preload_libraries support on Win32?
Date: 2007-01-29 19:39:34
Message-ID: 20070129193934.GD14134@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-hackers
korryd(at)enterprisedb(dot)com wrote:
> > > And, shared_preload_libraries is processed (in the postmaster) before
> > > the shared-memory segment is created, so a shared_preload_library can
> > > call RequestAddinShmemSpace() and RequestAddinLWLocks(), but a
> > > local_preload_library cannot.
> > 
> > That doesn't seem like an issue though, since the copy in the postmaster
> > will have done that anyway.
> 
> 
> You're right - we need the copy in the postmaster (to setup shared
> memory and LW locks), and we need them in the backends too.  I just want
> to avoid having to set both shared_preload_libraries and
> local_preload_libraries (to the same thing).  Adding a call to
> process_shared_preload_libraries() in SubPostmasterMain() seems to fix
> the problem for me.

Just make sure you don't load the libraries in bgwriter et al ...

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

pgsql-hackers by date

Next:From: korrydDate: 2007-01-29 19:48:48
Subject: Re: shared_preload_libraries support on Win32?
Previous:From: Alvaro HerreraDate: 2007-01-29 19:32:42
Subject: Re: [pgsql-patches] Autovacuum launcher patch

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