pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Ruben Rubio Rey <ruben@rentalia.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Posrgres speed problem
Date: Mon, 12 Jun 2006 10:25:53 -0500
Message-ID: <20060612152552.GU34196@pervasive.com> (raw)
In-Reply-To: <448D869D.5000908@rentalia.com>
References: <448D7C81.1000108@rentalia.com>
	<448D7DD9.10400@i-logic.hu>
	<448D8129.9010302@rentalia.com>
	<20060612151757.GS34196@pervasive.com>
	<448D869D.5000908@rentalia.com>

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



view thread (11+ messages)  latest in thread

Message-ID: <20060612152552.GU34196@pervasive.com>
Permalink:  ../20060612152552.GU34196@pervasive.com/
Also on:    postgresql.org/message-id/20060612152552.GU34196@pervasive.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jnasby@pervasive.com, ruben@rentalia.com
  Subject: Re: Posrgres speed problem
  In-Reply-To: <20060612152552.GU34196@pervasive.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox