X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ED7CAD7E76 for ; Mon, 17 Oct 2005 20:36:09 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44548-03 for ; Mon, 17 Oct 2005 23:36:05 +0000 (GMT) Received: from window.monsterlabs.com (window.monsterlabs.com [216.183.105.176]) by svr1.postgresql.org (Postfix) with SMTP id A86F4D7E4A for ; Mon, 17 Oct 2005 20:36:06 -0300 (ADT) Received: (qmail 23543 invoked from network); 17 Oct 2005 23:36:07 -0000 Received: from pcp0012204803pcs.blairblvd.tn.nash.comcast.net (HELO ?192.168.15.103?) (69.245.49.69) by 0 with SMTP; 17 Oct 2005 23:36:07 -0000 Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Scott Marlowe Content-Transfer-Encoding: 7bit From: "Thomas F. O'Connell" Subject: Re: postmaster blues after system restart Date: Mon, 17 Oct 2005 18:36:02 -0500 To: pgsql-admin@postgresql.org X-Mailer: Apple Mail (2.734) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.017 required=5 tests=[AWL=0.017] X-Spam-Level: X-Archive-Number: 200510/200 X-Sequence-Number: 19272 On Fri, 2005-10-14 at 15:49, Thomas F. O'Connell wrote: >> The culprit that ended up leading to my original post was an NFS >> script that cleans out /tmp. It was running as the last thing in a >> given boot level, so it blew away the socket file in /tmp. > > I'm sure you already know this, but wildly / randomly deleting > things in > /tmp is a bad idea... Well, here's the story. It was a Debian box, and somehow, mountnfs.sh wound up at S99 in /etc/rc2.d. I'm not sure how that happened, but it raises some potential questions: Converting this to a PostgreSQL on Debian question: is it a good admin practice to go ahead and set TMPTIME=-1 in /etc/default/rcS on Debian servers running postgres? If the answer is "yes", then it becomes a more purely Debian question: what are the ramifications of not cleaning out /tmp at boot using initscripts? More widely: are there other non-Debian-based distributions that have a similar facility for wiping /tmp at boot? Is changing the timing easy? Is the disabling mechanism the same? Maybe not having seen too many prior instances of this particular issue is a good sign that no one is obliterating the contents of /tmp after postgres has started, but the fact that Debian has tools in initscripts that seek to clean out /tmp this makes me think a mention of this in the PostgreSQL documentation might be a good idea (perhaps in 14.6: Post-Installation Setup?). But I'd be curious to know the perspective of other Debian/PostgreSQL admins on where they think the issue really lies or even whether there is a perceived issue. -- Thomas F. O'Connell Co-Founder, Information Architect Sitening, LLC Open Source Solutions. Optimized Web Development. http://www.sitening.com/ 110 30th Avenue North, Suite 6 Nashville, TN 37203-6320 615-469-5150 615-469-5151 (fax)