Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 May 2005 16:43:54 -0400
From:      Richard Coleman <rcoleman@criticalmagic.com>
To:        =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: PostgreSQL in FreeBSD jails
Message-ID:  <4276910A.3040100@criticalmagic.com>
In-Reply-To: <86acndmyky.fsf@xps.des.no>
References:  <426E5713.3010906@eurocom.od.ua> <747dc8f30504260812ee3c47e@mail.gmail.com> <426E5EA5.8000703@eurocom.od.ua> <426F3AFA.9020900@konvergencia.hu> <426F5A6E.4050208@eurocom.od.ua> <86acndmyky.fsf@xps.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smørgrav wrote:
> There are two possible solutions:
> 
>  - hack the SysV IPC code to use separate namespaces for each jail
> 
>  - make PostgreSQL use POSIX shared memory instead of SysV shared
>    memory
> 
> I suspect that the latter is significantly easier, and would probably
> improve performance as well.
> 
> DES

It might be easier to hack PostgreSQL so that the shared memory 
identifier depends not only on the port, but also on the IP address 
(which will of course be different for each jail).  Or better yet, to be 
able to specify the shared memory identifier to use directly in the 
config file.

Richard Coleman
rcoleman@criticalmagic.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4276910A.3040100>