Re: postgresql in FreeBSD jails: proposal - Mailing list pgsql-jdbc

From Marc G. Fournier
Subject Re: postgresql in FreeBSD jails: proposal
Date
Msg-id fmmqfh$buq$3@news.hub.org
Whole thread Raw
Responses Re: postgresql in FreeBSD jails: proposal
List pgsql-jdbc
mischa_sandberg@telus.net (Mischa Sandberg) writes:

>Unfortunately, with multiple jails running PG servers and (due to app
>limitations) all servers having same PGPORT, you get the situation that
>when jail#2 (,jail#3,...) server comes up, it:
>- detects that there is a shm seg with ipc key 5432001
>- checks whether the associated postmaster process exists (with kill -0)
>- overwrites the segment created and being used by jail #1

Easiest fix: change the UID of the user running the postmaster (ie. pgsql) so
that each runs as a distinct UID (instead of distinct PGPORT) ... been doing
this since moving to FreeBSD 6.x ... no patches required ...
--
----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email . scrappy@hub.org                              MSN . scrappy@hub.org
Yahoo . yscrappy               Skype: hub.org        ICQ . 7615664

pgsql-jdbc by date:

Previous
From: Jan de Visser
Date:
Subject: Re: trying to connect to pg from within a local network
Next
From: Ken Johanson
Date:
Subject: Re: Patch for Statement.getGeneratedKeys()