Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E58652E2E08 for ; Thu, 17 Jan 2008 19:52:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 80962-05 for ; Thu, 17 Jan 2008 19:52:38 -0400 (AST) Received: from defout.telus.net (defout.telus.net [199.185.220.240]) by postgresql.org (Postfix) with ESMTP id 33B022E3C90 for ; Thu, 17 Jan 2008 19:52:36 -0400 (AST) Received: from localhost ([199.185.220.240]) by priv-edtnes26.telusplanet.net (InterMail vM.7.08.03.00 201-2186-126-20070710) with ESMTP id <20080117235233.CBS3948.priv-edtnes26.telusplanet.net@localhost>; Thu, 17 Jan 2008 16:52:33 -0700 Received: from 209.17.179.1 ( [209.17.179.1]) as user a3a18850@192.168.200.1 by webmail.telus.net with HTTP; Thu, 17 Jan 2008 15:52:33 -0800 Message-ID: <1200613953.478fea419c929@webmail.telus.net> Date: Thu, 17 Jan 2008 15:52:33 -0800 From: Mischa Sandberg To: Tom Lane Cc: Stephen Frost , "Marc G. Fournier" , pgsql-hackers@postgresql.org Subject: Re: [ADMIN] postgresql in FreeBSD jails: proposal References: <1200501702.478e33c61b74e@webmail.telus.net> <4089.1200550374@sss.pgh.pa.us> <20080117143729.GR5031@tamriel.snowman.net> <1200610323.478fdc131bb3a@webmail.telus.net> <17061.1200613772@sss.pgh.pa.us> In-Reply-To: <17061.1200613772@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1-cvs X-Originating-IP: 209.17.179.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/739 X-Sequence-Number: 113013 Quoting Tom Lane : > Mischa Sandberg writes: > > I'm going to skip the kill(1,0) test and depend on nattch only, > > with a function that PGSharedMemoryIsInUse() can also use. > > (For a healthy server, nattch is never less than 2, right?) > > Oh, forgot to mention: healthy servers are not the point here. > You should make the code keep its hands off any segment with > nonzero nattch, because even one orphaned backend is enough > to cause trouble. Note taken. Worth putting a warning in the log, too? Engineers think that equations approximate reality. Physicists think that reality approximates the equations. Mathematicians never make the connection.