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 2CABF11F6085 for ; Mon, 24 Apr 2006 21:16:03 -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 27549-09 for ; Mon, 24 Apr 2006 21:15:57 -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 6913C11F6095 for ; Mon, 24 Apr 2006 21:15:55 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id EE12756423; Mon, 24 Apr 2006 19:15:54 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Mon, 24 Apr 2006 19:15:53 -0500 Date: Mon, 24 Apr 2006 19:15:53 -0500 From: "Jim C. Nasby" To: Markus Schaber Cc: PostgreSQL SQL List Subject: Re: Migrating a Database to a new tablespace Message-ID: <20060425001553.GM64695@pervasive.com> References: <4444D607.1000309@logix-tt.com> <444CA2F5.4030705@logix-tt.com> <444CA971.3000505@logix-tt.com> <444CB7C9.8060307@logix-tt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <444CB7C9.8060307@logix-tt.com> 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:060425:schabi@logix-tt.com::fUY9imHRmsDNRH3s:000000000000000000 000000000000000000000000BGhV X-Hashcash: 1:20:060425:pgsql-sql@postgresql.org::uQBITDTv+wu5Kq2Q:0000000000000 0000000000000000000000007xre X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/169 X-Sequence-Number: 24978 That means that the tablespace directory isn't empty. On Mon, Apr 24, 2006 at 01:34:33PM +0200, Markus Schaber wrote: > Hello, > > I now pulled the plug, migrated all databases via "create database ... > tempate olddatabase tablespace newts" to new tablespaces, one for each > database, and dropped all old databases that contained references to the > tablespace. Pgadmin3 also shows that the tablespace is not referenced by > anything. > > But I cannot drop it, I get the following message: > > postgres=# drop TABLESPACE foo; > ERROR: tablespace "foo" is not empty > > > It seems that the whole tablespace thing is not yet 100% waterproof, > good that this did happen on a developer machine, and not on a > production machine. > > Thanks for your patience, > Markus > > -- > Markus Schaber | Logical Tracking&Tracing International AG > Dipl. Inf. | Software Development GIS > > Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > -- 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