Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id F27182E38C8 for ; Thu, 17 Jan 2008 04:11:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 60738-03 for ; Thu, 17 Jan 2008 04:11:42 -0400 (AST) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by postgresql.org (Postfix) with ESMTP id 59B702E2D40 for ; Thu, 17 Jan 2008 04:11:45 -0400 (AST) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id m0H8BW1T083111; Thu, 17 Jan 2008 10:11:32 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id m0H8BVc7083110; Thu, 17 Jan 2008 10:11:31 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-jdbc@postgresql.org Subject: Re: postgresql in FreeBSD jails: proposal Date: Thu, 17 Jan 2008 10:11:30 +0200 User-Agent: KMail/1.9.7 Cc: "Marc G. Fournier" , "pgadmin-devteam@postgresql.org.pgadmin-hackers@postgresql.org.pgadmin-support@postgresql.org.pgsql-admin@postgresql.org.pgsql-advocacy@postgresql.org.pgsql-announce@postgresql.org.pgsql-benchmarks@postgresql.org.pgsql-bugs@postgresql.org.pgsql-chat"@pos References: <1200501702.478e33c61b74e@webmail.telus.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200801171011.30904.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/125 X-Sequence-Number: 18161 =CE=A3=CF=84=CE=B9=CF=82 Thursday 17 January 2008 07:52:50 =CE=BF/=CE=B7 Ma= rc G. Fournier =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > mischa_sandberg@telus.net (Mischa Sandberg) writes: >=20 > >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 >=20 > Easiest fix: change the UID of the user running the postmaster (ie. pgsql= ) so=20 > that each runs as a distinct UID (instead of distinct PGPORT) ... been do= ing=20 > this since moving to FreeBSD 6.x ... no patches required ... Hi Marc, what happened with the patches at http://docs.freevps.com/doku.php?id=3Dfre= ebsd:changelog? Those patches are supposed to make IPC run without collisions in many jails= , thus solving the classic problem with postgresql, allowing the admin to use the same uid, PG= PORT in all pgsql server instances. Do you know if any of this stuff make it anywhere in official FreeBSD? =2D-=20 Achilleas Mantzios