Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f972Yin13950 for ; Sat, 6 Oct 2001 22:34:44 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f972F5167358 for pgsql-admin@postgresql.org; Sat, 6 Oct 2001 22:15:05 -0400 (EDT) (envelope-from news) X-Newsgroups: comp.databases.postgresql.admin From: marc@oscar.eng.cv.net (Marc Spitzer) Subject: Re: delete/vacuum not freeing disk space References: <20011006165604.72133.qmail@web20005.mail.yahoo.com> Message-Id: User-Agent: slrn/0.9.7.0 (FreeBSD) Lines: 29 Date: Sun, 07 Oct 2001 02:15:03 GMT Organization: Optimum Online To: pgsql-admin@postgresql.org X-Archive-Number: 200110/113 X-Sequence-Number: 2359 In article <20011006165604.72133.qmail@web20005.mail.yahoo.com>, Joshua Franklin wrote: > I've got a large database that's getting too big. I > checked with the users and deleted approximately 1/6th > of the records (we have archived backups) and then ran > a VACUUM, which took a really long time to complete > (several days). But, the disk space usage doesn't seem > to have changed. Do I need to VACUUM twice or > something? Should it be faster the second time? > > Thanks. > > __________________________________________________ > Do You Yahoo!? > NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. > http://geocities.yahoo.com/ps/info1 > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html vacuum does not reclame space in indexes, if you use a command called reindex to recreate the indexes it may reclame space. It needs space to write the new index's though. Reindex should be run in sigle user mode only, per the docs. marc