Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 703C69F9D3A for ; Tue, 4 Sep 2007 14:56:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 31868-02 for ; Tue, 4 Sep 2007 14:55:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by postgresql.org (Postfix) with ESMTP id 6B86E9F9F21 for ; Tue, 4 Sep 2007 14:56:00 -0300 (ADT) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (vanquish.pitbpa0.priv.collaborativefusion.com [192.168.2.61]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Tue, 04 Sep 2007 13:55:59 -0400 id 00056416.46DD9C2F.00008413 Date: Tue, 4 Sep 2007 13:55:59 -0400 From: Bill Moran To: rafael@akyasociados.com.ar Cc: pgsql-performance@postgresql.org Subject: Re: Vacum Analyze problem Message-Id: <20070904135559.affb0db0.wmoran@collaborativefusion.com> In-Reply-To: <1275.192.168.1.229.1188926827.squirrel@webmail.akyasociados.com.ar> References: <1275.192.168.1.229.1188926827.squirrel@webmail.akyasociados.com.ar> Organization: Collaborative Fusion X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/23 X-Sequence-Number: 26568 In response to rafael@akyasociados.com.ar: > Hello everyone: > > I wanted to ask you about how the VACUUM ANALYZE works. is it possible > that something can happen in order to reset its effects forcing to execute > the VACUUM ANALYZE comand again? i am asking this because i am struggling > with a query which works ok after i run a VACUUM ANALYZE, however, sudennly, > it starts to take forever (the execution of the query) until i make another > VACUUM ANALYZE, and so on ... > I'd like to point that i am a novice when it comes to non basic > postgresql performance related stuff. > > Thank you all in advance To add to Mikko's comments: Periodic vacuuming and analyzing is a mandatory part of running a PostgreSQL database server. You'll probably be best served to configure the autovacuum daemon to handle this for you. See the postgresql.conf config file. -- Bill Moran Collaborative Fusion Inc. http://people.collaborativefusion.com/~wmoran/ wmoran@collaborativefusion.com Phone: 412-422-3463x4023