pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc G. Fournier <scrappy@hub.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: [ADMIN] postgresql in FreeBSD jails: proposal
Date: Thu, 17 Jan 2008 02:17:53 -0400
Message-ID: <B72666942EA7D6CFBC0B7C37@ganymede.hub.org> (raw)
In-Reply-To: <4089.1200550374@sss.pgh.pa.us>
References: <1200501702.478e33c61b74e@webmail.telus.net>
	<fmmqfh$buq$3@news.hub.org>
	<4089.1200550374@sss.pgh.pa.us>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



- --On Thursday, January 17, 2008 01:12:54 -0500 Tom Lane <tgl@sss.pgh.pa.us> 
wrote:

> "Marc G. Fournier" <scrappy@hub.org> writes:
>> 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 ...
>
> Sure, but in the spirit of "belt and suspenders too", I'd think that
> doing that *and* something like Mischa's proposal wouldn't be bad.

No arguments here, just pointing out that changing PGPORT isn't/wasnt' the only 
way of addressing this problem ... if we can do something more 'internal', it 
would definitely make life alot easier ...

- ----
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHjvMR4QvfyHIvDvMRAjJuAKCAYGkyvDOMkA6wqeQ7nAqoA1mkRQCdG+5n
aD1uG+zUtevdJGJ3BsqeDAs=
=Y0DY
-----END PGP SIGNATURE-----




view thread (22+ messages)  latest in thread

Message-ID: <B72666942EA7D6CFBC0B7C37@ganymede.hub.org>
Permalink:  ../B72666942EA7D6CFBC0B7C37@ganymede.hub.org/
Also on:    postgresql.org/message-id/B72666942EA7D6CFBC0B7C37@ganymede.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scrappy@hub.org, tgl@sss.pgh.pa.us, pgsql-hackers@postgreSQL.org
  Subject: Re: [ADMIN] postgresql in FreeBSD jails: proposal
  In-Reply-To: <B72666942EA7D6CFBC0B7C37@ganymede.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox