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 DDF939FA42B for ; Mon, 12 Jun 2006 12:26:01 -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 66114-05 for ; Mon, 12 Jun 2006 12:25:54 -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 379349F9316 for ; Mon, 12 Jun 2006 12:25:56 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id C7DC05649B; Mon, 12 Jun 2006 10:25:53 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Mon, 12 Jun 2006 10:25:53 -0500 Date: Mon, 12 Jun 2006 10:25:53 -0500 From: "Jim C. Nasby" To: Ruben Rubio Rey Cc: pgsql-performance@postgresql.org Subject: Re: Posrgres speed problem Message-ID: <20060612152552.GU34196@pervasive.com> References: <448D7C81.1000108@rentalia.com> <448D7DD9.10400@i-logic.hu> <448D8129.9010302@rentalia.com> <20060612151757.GS34196@pervasive.com> <448D869D.5000908@rentalia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <448D869D.5000908@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::sUzPbNgTF1Kjr7M/:0000000000000000000 0000000000000000000000001/Qi X-Hashcash: 1:20:060612:pgsql-performance@postgresql.org::fQsWbd7jDxaZtM7x:00000 0000000000000000000000002Q+6 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/139 X-Sequence-Number: 19496 On Mon, Jun 12, 2006 at 05:22:05PM +0200, Ruben Rubio Rey wrote: > Jim C. Nasby wrote: > > >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? > > > How do I execute built-in autovacuum? Make the following changes to postgresql.conf: autovacuum = on # enable autovacuum subprocess? autovacuum_vacuum_threshold = 500 # min # of tuple updates before # vacuum autovacuum_analyze_threshold = 200 # min # of tuple updates before autovacuum_vacuum_scale_factor = 0.2 # fraction of rel size before # vacuum autovacuum_analyze_scale_factor = 0.1 # fraction of rel size before -- 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