X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 919E3D1B220 for ; Fri, 23 Jul 2004 22:49:49 -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 23910-05 for ; Sat, 24 Jul 2004 01:49:48 +0000 (GMT) Received: from outbound.mailhop.org (outbound.mailhop.org [63.208.196.171]) by svr1.postgresql.org (Postfix) with ESMTP id 7B142D1B1B4 for ; Fri, 23 Jul 2004 22:49:43 -0300 (ADT) Received: from ool-4350c7ad.dyn.optonline.net ([67.80.199.173] helo=[192.168.0.66]) by outbound.mailhop.org with asmtp (TLSv1:AES256-SHA:256) (Exim 4.20) id 1BoBfV-000Hx7-Pz; Fri, 23 Jul 2004 21:49:45 -0400 Message-ID: <4101C032.9060409@zeut.net> Date: Fri, 23 Jul 2004 21:49:38 -0400 From: "Matthew T. O'Connor" User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gaetano Mendola Cc: Tom Lane , Dennis Bjorklund , "pgsql-performance@postgresql.org" Subject: Re: [HACKERS] Wrong index choosen? References: <20162.1090593927@sss.pgh.pa.us> <41014DE1.8000007@bigfoot.com> <410154F9.3080500@zeut.net> <4101A83F.2070801@bigfoot.com> In-Reply-To: <4101A83F.2070801@bigfoot.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mail-Handler: MailHop Outbound by DynDNS.org X-Originating-IP: 67.80.199.173 X-Report-Abuse-To: abuse@dyndns.org (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: zeut 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_NJABL, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/161 X-Sequence-Number: 7552 Gaetano Mendola wrote: > Well I think pg_autovacuum as is in 7.4 can not help me for this particular > table. > > The table have 4.8 milions rows and I have for that table almost 10252 new > entries for day. > > I'm using pg_autovacuum with -a 200 -A 0.8 this means a threashold for > that table equal to: 3849008 and if I understod well the way pg_autovacuum > works this means have an analyze each 375 days, and I need an analyze for > each day, at least. > > So I think is better for me put an analyze for that table in the cron. > > Am I wrong ? No, I think you are right. You could do something like -a 1000 -A .00185, but that will probably for an analyze too often for most of your other tables.