Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 7A39C9FA149 for ; Tue, 4 Sep 2007 20:24:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 49201-06 for ; Tue, 4 Sep 2007 20:24:36 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [87.127.95.196]) by postgresql.org (Postfix) with ESMTP id 8F3449FA13E for ; Tue, 4 Sep 2007 20:24:36 -0300 (ADT) Received: from localhost.enta.net ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1IShl3-00017T-7N; Wed, 05 Sep 2007 00:24:33 +0100 To: Cc: , Subject: Re: Vacum Analyze problem In-Reply-To: <1415.192.168.1.229.1188927997.squirrel@webmail.akyasociados.com.ar> (rafael@akyasociados.com.ar's message of "Tue\, 4 Sep 2007 14\:46\:37 -0300 \(ART\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 2246) References: <2ca799770709041033n664cb0ep3a5679548dac3a2e@mail.gmail.com> <1415.192.168.1.229.1188927997.squirrel@webmail.akyasociados.com.ar> From: Gregory Stark Organization: EnterpriseDB Date: Wed, 05 Sep 2007 00:24:32 +0100 Message-ID: <87bqci580f.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/35 X-Sequence-Number: 26580 writes: > I knew that in the long run the VACUUM ANALYZE comand has to be executed > again. My question is if something can happen over night and cause the need > of a new VACUUM ANALYZE (regenerating indexes or other thing related with > performance). The answer to your question is possibly yes for two reasons: 1) If you're running an autovacuum daemon it might decide it's time to vacuum the table and kick off a vacuum. That sounds most like what you're describing. 2) If the size of the table changes substantially becoming much larger (or smaller but that wouldn't happen just due to deletes unless you run vacuum) then recent versions of Postgres will notice even if you don't run analyze and take that into account. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com