Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B4AD21337B47 for ; Thu, 10 Feb 2011 00:14:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 93625-03 for ; Thu, 10 Feb 2011 04:14:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yi0-f46.google.com (mail-yi0-f46.google.com [209.85.218.46]) by mail.postgresql.org (Postfix) with ESMTP id 12249133616B for ; Thu, 10 Feb 2011 00:14:08 -0400 (AST) Received: by yib18 with SMTP id 18so412120yib.19 for ; Wed, 09 Feb 2011 20:14:08 -0800 (PST) Received: by 10.150.210.2 with SMTP id i2mr2608938ybg.366.1297311247975; Wed, 09 Feb 2011 20:14:07 -0800 (PST) Received: from [192.168.1.100] (c-76-102-27-65.hsd1.ca.comcast.net [76.102.27.65]) by mx.google.com with ESMTPS id 5sm716808yhl.14.2011.02.09.20.14.06 (version=SSLv3 cipher=RC4-MD5); Wed, 09 Feb 2011 20:14:07 -0800 (PST) Subject: Re: possible bug: orphaned files left after immediate shutdown during DDL From: Jeff Davis To: Tom Lane Cc: pgsql-bugs@postgresql.org In-Reply-To: <20348.1297310326@sss.pgh.pa.us> References: <1297309026.11375.7.camel@jdavis-ux.asterdata.local> <20348.1297310326@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Date: Wed, 09 Feb 2011 20:14:07 -0800 Message-ID: <1297311247.27157.486.camel@jdavis> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.6 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201102/93 X-Sequence-Number: 29365 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. Regards, Jeff Davis