X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3F1FBD1B896 for ; Fri, 4 Jun 2004 16:35:10 -0300 (ADT) 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 89946-03 for ; Fri, 4 Jun 2004 19:35:03 +0000 (GMT) Received: from blackmamba.leadership-solutions.net (unknown [64.90.195.136]) by svr1.postgresql.org (Postfix) with SMTP id 79096D1B1DA for ; Fri, 4 Jun 2004 16:35:01 -0300 (ADT) Received: (qmail 27294 invoked from network); 4 Jun 2004 19:48:47 -0000 Received: from unknown (HELO ?192.168.0.3?) (67.42.122.198) by blackmamba.leadership-solutions.net with SMTP; 4 Jun 2004 19:48:47 -0000 Message-ID: <40C0CE23.6060006@alpinenetworking.com> Date: Fri, 04 Jun 2004 13:31:47 -0600 From: Rick Gigger User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg Stark Cc: pgsql-general@postgresql.org Subject: Re: VACUUM Question References: <40345D0D.9060103@meerkatsoft.com> <87smdb1k0d.fsf@stark.xeocode.com> In-Reply-To: <87smdb1k0d.fsf@stark.xeocode.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/190 X-Sequence-Number: 61573 >>One more question; on one server the Vacuum Analyze before the insert takes >>approx. 2min after that the same command takes 15min. > > > You might try a VACUUM FULL sometime when you can deal with 15min of downtime > or so. Actually it would probably be longer. Perhaps the table that's taking > 15min has a ton of extra dead tuples left over from the fsm settings being too > low and/or vacuum being too infrequent. Does VACUUM FULL just lock entire tables and thus cause you to essentially have downtime on that database because it doesn't respond quickly or do you actually have to shut down postgres to safely do a vacuum full?