X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 8FBC611F623C for ; Thu, 27 Apr 2006 02:38:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 14171-10 for ; Thu, 27 Apr 2006 02:38:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id E153411F6223 for ; Thu, 27 Apr 2006 02:38:31 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 0384C56427; Thu, 27 Apr 2006 00:38:29 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Thu, 27 Apr 2006 00:38:28 -0500 Date: Thu, 27 Apr 2006 00:38:28 -0500 From: "Jim C. Nasby" To: Bruce Momjian Cc: Tom Lane , Markus Schaber , PostgreSQL SQL List Subject: Re: Migrating a Database to a new tablespace Message-ID: <20060427053827.GA97354@pervasive.com> References: <18451.1146069195@sss.pgh.pa.us> <200604261635.k3QGZdB06325@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200604261635.k3QGZdB06325@candle.pha.pa.us> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060427:pgman@candle.pha.pa.us::ICd0x+Q8fvdQdTQ1:000000000000000 0000000000000000000000002VxV X-Hashcash: 1:20:060427:tgl@sss.pgh.pa.us::DRJ4/6irpw41ZwkW:00000000000000000000 0000000000000000000000004um4 X-Hashcash: 1:20:060427:schabi@logix-tt.com::dSiAP6YGqVOyr9Wz:000000000000000000 0000000000000000000000001VhW X-Hashcash: 1:20:060427:pgsql-sql@postgresql.org::A7CR7nF5Z3A1m3Am:0000000000000 0000000000000000000000003dPw X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/184 X-Sequence-Number: 24993 On Wed, Apr 26, 2006 at 12:35:39PM -0400, Bruce Momjian wrote: > Tom Lane wrote: > > Markus Schaber writes: > > > As I said the leftovers are likely to be caused by hard kills and > > > backend crashes, so I would not go into deeper analysis, but maybe the > > > finding and possibly removing of such leftovers should be half-automated > > > to assist server admins. > > > > It's been discussed. Personally I'm afraid of the idea of automatically > > deleting files that seem unreferenced, but having a tool to find them > > for manual deletion isn't a bad idea. I think Bruce had a prototype > > patch at one point --- not sure what the status is. > > > > I have work someone did in the past. I just need to be updated to deal > with tablespaces. > > ftp://candle.pha.pa.us/pub/postgresql/mypatches/checkfile.* > > Let me know if you want details. Is it able to also delete the cruft? Seems to be a useful extension, especially on windows, which AFAIK doesn't have an equivalent to ``. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461