Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AE9A91337B5D for ; Wed, 19 Jan 2011 15:41:41 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 72500-06 for ; Wed, 19 Jan 2011 19:41:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 32F201337B58 for ; Wed, 19 Jan 2011 15:41:34 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p0JJfXRA025154; Wed, 19 Jan 2011 14:41:33 -0500 (EST) To: Nacho Mezzadra cc: Robert Haas , pgsql-bugs@postgresql.org Subject: Re: BUG #5603: pg_tblspc and pg_twoface directories get deleted when starting up service In-reply-to: References: <201008051846.o75Ikrl0057510@wwwmaster.postgresql.org> <20872.1281413496@sss.pgh.pa.us> Comments: In-reply-to Nacho Mezzadra message dated "Wed, 19 Jan 2011 09:49:34 -0300" Date: Wed, 19 Jan 2011 14:41:33 -0500 Message-ID: <25153.1295466093@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/142 X-Sequence-Number: 29164 Nacho Mezzadra writes: > Tom, Robert, sorry I am coming back to you after a while, but we still > have the same issue. This has been happening in our environments, but > now it is also happening in customers' environments -which we do not > set up- and it is also happening. All environments are always Red Hat > Enterprise 5.3. You still haven't given any reason to think this is a Postgres bug, nor indeed any information beyond what you said originally. One thing that strikes me is that both pg_tblspc and pg_twophase are empty and unused during normal operation (if you're not using the relevant features). They are scanned during postmaster startup though, which is why you're getting failures then. I suspect that these subdirectories are not in fact getting removed during PG shutdown or restart, but were deleted some time before that. In particular I wonder if somebody's loosed an overaggressive tmp-file-cleaning script on your whole filesystem. Something that was removing empty directories that hadn't been accessed in awhile could explain this. regards, tom lane