X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 86D178B9EC1 for ; Wed, 23 Feb 2005 18:09:10 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85815-01 for ; Wed, 23 Feb 2005 18:09:01 +0000 (GMT) Received: from fs3.ft.fo (mail-gw.ft.fo [212.55.40.2]) by svr1.postgresql.org (Postfix) with ESMTP id B7B6A8B9E99 for ; Wed, 23 Feb 2005 18:08:59 +0000 (GMT) Received: from FT_DOM-MTA by fs3.ft.fo with Novell_GroupWise; Wed, 23 Feb 2005 18:08:57 +0000 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.3 Date: Wed, 23 Feb 2005 18:08:30 +0000 From: "John Jensen" To: , Subject: Re: Question Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.314 tagged_above=0 required=5 tests=AWL, BIZ_TLD, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/263 X-Sequence-Number: 16431 First its bad style to use a generic subject like "Question". Use something related to the specific problem. "Help" is an other poor choice. Second you need to put in a lot more information about your setup. As an absolute minimum provide postgresql release and operating system. Third it sounds like you've got some reading to do. The manual and this book would be a good place to start: http://www.faqs.org/docs/ppbook/book1.htm While you read you should run the command "vacuum analyze", this is going to take a REALLY LONG time. 12 to 24 hours wouldn't surprise me. But at least the base will still be online although with degraded performance. When you've got a better handle on thing I suggest you do a pg_dumpall, drop the base and perform a restore. You are likely to run on a more or less outdated version so while doing the dump and restore you should consider upgrading to the latest version. The INSTALL document in the source distro tells how to perform dump/restore when upgrading. I'm able to do a dump of a 50Gig base in one hour but the restore time depends a lot on what sort of index'es you have. Don't hold your breath waiting. All this depends a lot on what sort of hardware you have. Cheers, John >>> 23-02-05 17:11 >>> Hi, I have a database with 100 GB size, I never have done a vacuumdb to it, analizyng, there is a table witn almost 25 GB, I have to run a Vaccum to clean it.. This is a longer operation. But somebody said me that if I make a backup(pg_dump), drop the database, create db, an then restore again, tha database is cleaned(recover disk space) and reindexed, is that true? If is true, how long is this? Thnaks for your help. Fabio.