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 1E63ED1B57C for ; Fri, 4 Jun 2004 16:40:50 -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 89889-05 for ; Fri, 4 Jun 2004 19:40:48 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by svr1.postgresql.org (Postfix) with ESMTP id F03F0D1B488 for ; Fri, 4 Jun 2004 16:40:45 -0300 (ADT) Received: from working.potentialtech.com (pa-plum1c-102.pit.adelphia.net [24.53.179.102]) by internet.potentialtech.com (Postfix) with ESMTP id A8E3269A7E; Fri, 4 Jun 2004 15:40:46 -0400 (EDT) Date: Fri, 4 Jun 2004 15:40:45 -0400 From: Bill Moran To: Rick Gigger Cc: gsstark@mit.edu, pgsql-general@postgresql.org Subject: Re: VACUUM Question Message-Id: <20040604154045.14016347.wmoran@potentialtech.com> In-Reply-To: <40C0CE23.6060006@alpinenetworking.com> References: <40345D0D.9060103@meerkatsoft.com> <87smdb1k0d.fsf@stark.xeocode.com> <40C0CE23.6060006@alpinenetworking.com> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=RCVD_IN_RFCI, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/191 X-Sequence-Number: 61574 Rick Gigger wrote: > >>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? The former. You don't shut the database server down, but it won't be responsive while vacuum full is running. -- Bill Moran Potential Technologies http://www.potentialtech.com