X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 4AABE9FA42B for ; Mon, 12 Jun 2006 12:18:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 66079-05 for ; Mon, 12 Jun 2006 12:18:00 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id BDADD9F9316 for ; Mon, 12 Jun 2006 12:18:01 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 97A2056441; Mon, 12 Jun 2006 10:17:59 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Mon, 12 Jun 2006 10:17:58 -0500 Date: Mon, 12 Jun 2006 10:17:58 -0500 From: "Jim C. Nasby" To: Ruben Rubio Rey Cc: G?briel ?kos , pgsql-performance@postgresql.org Subject: Re: Posrgres speed problem Message-ID: <20060612151757.GS34196@pervasive.com> References: <448D7C81.1000108@rentalia.com> <448D7DD9.10400@i-logic.hu> <448D8129.9010302@rentalia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <448D8129.9010302@rentalia.com> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060612:ruben@rentalia.com::0j9vMpOnuz5NG2dy:0000000000000000000 00000000000000000000000064DV X-Hashcash: 1:20:060612:akos.gabriel@i-logic.hu::XUjqDRe/+7+dfWNq:00000000000000 0000000000000000000000004KzR X-Hashcash: 1:20:060612:pgsql-performance@postgresql.org::5bcJF/G+TN3K9tMI:00000 0000000000000000000000007B8X X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/136 X-Sequence-Number: 19493 On Mon, Jun 12, 2006 at 04:58:49PM +0200, Ruben Rubio Rey wrote: > $DIREC/vacuumdb -f -v --analyze vacadb 2>&1 | $LOGBIN > $DIRLOGS/%Y-%m-%d_limpieza.log > echo "reindex database vacadb;" | $DIREC/psql vacadb 2>&1 | $LOGBIN > $DIRLOGS/%Y-%m-%d_limpieza.log > date | $LOGBIN $DIRLOGS/%Y-%m-%d_limpieza.log Ugh. Is there some reason you're not using the built-in autovacuum? If you enable it and cut the thresholds in half you'll most likely never need to vacuum manually, let alone reindex. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461