Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B46E84763D7 for ; Wed, 16 Oct 2002 16:09:49 -0400 (EDT) Received: from linuxine.mogul.dk (linuxine.mogul.dk [130.227.5.194]) by postgresql.org (Postfix) with ESMTP id 8A1D84763C4 for ; Wed, 16 Oct 2002 16:09:48 -0400 (EDT) Received: from linuxine.mogul.dk (localhost.localdomain [127.0.0.1]) by linuxine.mogul.dk (8.11.6/8.11.6) with ESMTP id g9GK9e605335; Wed, 16 Oct 2002 22:09:40 +0200 Date: Wed, 16 Oct 2002 22:09:40 +0200 From: Morten Guldager To: Bruce Momjian Cc: pgsql-admin@postgresql.org Subject: Re: VACUUM FULL fails to free diskspacef Message-ID: <20021016220940.A5323@linuxine.mogul.dk> Reply-To: PostgreSQL-admin@mogul.dk References: <20021016194613.C5130@linuxine.mogul.dk> <200210161818.g9GIIFU17094@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <200210161818.g9GIIFU17094@candle.pha.pa.us>; from pgman@candle.pha.pa.us on Wed, Oct 16, 2002 at 20:18:14 +0200 X-Mailer: Balsa 1.2.4 Lines: 50 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/121 X-Sequence-Number: 5979 On 2002.10.16 20:18 Bruce Momjian wrote: > Morten Guldager wrote: > > > > My database cluster have one database with one table. (if we don't > > count template0 and 1. > > > > My table has 3 collumns, 2 ints and a bytea. 2.5M rows and it > consumes > > 150G diskspace. I have a unique index on the 2 ints. > > > > I did a TRUNCATE on the table, and a VACUUM FULL. > > > > But PostgreSQL-7.2.3 did not return the space to the filesystem. > (ext3 > > on linux) > > That is interesting. I originally thought maybe the indexes aren't > truncated, but it looks like that is happening. Please try > /contrib/oid2name to find which files are taking the space. Ok, never used oid2name before, but here we go: I located a datafile which must be one of the files holding the non-freed space, it is 1073741824 bytes big. It is: $PGDATA/base/16556/20048694 Next I did a: (mogul is the name of my database) $ oid2name -d mogul -o 20048694 Tablename of oid 20048694 from database "mogul": --------------------------------- 20048694 = pg_toast_20048692 and then: $ oid2name -d mogul -o 20048692 Tablename of oid 20048692 from database "mogul": --------------------------------- 20048692 = regninger And "regninger" is the name of the table I just truncated. I have tried to drop the indexes, that does not help. If I drop the database the space do get freed. /Morten %-)