Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 27F242E002C for ; Fri, 18 Apr 2008 00:00:10 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 43775-05 for ; Thu, 17 Apr 2008 23:59:58 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by developer.postgresql.org (Postfix) with ESMTP id B9E192E003F for ; Thu, 17 Apr 2008 23:59:58 -0300 (ADT) Received: by yw-out-2324.google.com with SMTP id 2so229469ywt.73 for ; Thu, 17 Apr 2008 19:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=8bpLXfot5mOhjxBBHSR7bAKhVfb9C+e354Zyksv+03c=; b=qGYEhxekglX+etu2B5HY/PjMQFXCbf05Op74q+axNH57GQxBoo8bmiJ8wYnGMjitId5EnWD71IWxHaJUjC2wAiVadLlvJwDj5v4MAw+dZqoMj6qSfoc4Y91QxutOdjlT3gWiwOTT9OZB+yQq+FneMLAGEOfyZnTItyznzV2TfxM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=k+ninr2agH9haOi5Qsg6PnZETEyP+Q3nxSsPB2qLNm8ebiKeu+Ue96PWQBL/tRQ4UWmc369xCsjp3Wa7m0jm1uL6vMW+q5qOrHRAwi5i6a6Q00cIvtNsFBmgm1Wz9xzPnrOW45WWxIEsA6EcB6L7wFMipj1H61r95IJKVkdWLCg= Received: by 10.151.108.19 with SMTP id k19mr2752338ybm.191.1208487595954; Thu, 17 Apr 2008 19:59:55 -0700 (PDT) Received: by 10.150.97.21 with HTTP; Thu, 17 Apr 2008 19:59:55 -0700 (PDT) Message-ID: <2e78013d0804171959k60d2f95ao5e735023433fbe43@mail.gmail.com> Date: Fri, 18 Apr 2008 08:29:55 +0530 From: "Pavan Deolasee" To: "Jesper Krogh" Subject: Re: autovacuum? Cc: pgsql-admin@postgresql.org In-Reply-To: <4807A9A1.9040806@krogh.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4807A9A1.9040806@krogh.cc> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/190 X-Sequence-Number: 28954 On Fri, Apr 18, 2008 at 1:18 AM, Jesper Krogh wrote: > > > So it seems to be running. Yes. > But shouldn't it hit the table a lot more? That depends on your autovac settings, especially autovacuum_vacuum_scale_factor. If it is set to 0.2 (which is default), then autovacuum would hit the table whenever the percentage of dead tuples is at least 20%. Again, the percentage of dead tuples depends on your table size and rate of insert/update/delete. > How do I check that it is somehow near optimal? > Again that depends on how much table bloat you can sustain. If you don't want the table to bloat too much, you can set aggressive settings for autovac. But that would trigger autovac more often and may have performance implication on your other concurrent queries. Thanks, Pavan -- Pavan Deolasee EnterpriseDB http://www.enterprisedb.com