Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7B08B1337B4E for ; Wed, 16 Feb 2011 09:45:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 01748-06 for ; Wed, 16 Feb 2011 13:45:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id EE5291337B4A for ; Wed, 16 Feb 2011 09:45:51 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p1GDjoO22162; Wed, 16 Feb 2011 08:45:50 -0500 (EST) From: Bruce Momjian Message-Id: <201102161345.p1GDjoO22162@momjian.us> Subject: Re: possible bug: orphaned files left after immediate shutdown during DDL In-Reply-To: <1297311247.27157.486.camel@jdavis> To: Jeff Davis Date: Wed, 16 Feb 2011 08:45:50 -0500 (EST) CC: Tom Lane , pgsql-bugs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" 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: 201102/141 X-Sequence-Number: 29413 Jeff Davis wrote: > On Wed, 2011-02-09 at 22:58 -0500, Tom Lane wrote: > > It's intentional ... not that other people haven't complained about it > > before. Remember that what you have done is forced a crash, and > > recovery from it is crash recovery. If we proactively removed such > > files we would very possibly be destroying evidence of forensic value. > > I thought that might be the case, but I wasn't able to find any previous > discussions. > > It might be a good idea to issue a warning during recovery, however, > like "possible orphaned file ...". I'm not sure if it's worth the > bookkeeping effort though. I thought we had a TODO item about removing orphaned files, but I don't see it now, perhaps because I thought we had fixed that. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +