pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-sql@postgresql.org
Subject: Re: slow query
Date: Thu, 5 Apr 2007 09:33:16 -0400
Message-ID: <20070405133316.GC6464@phlogiston.dyndns.org> (raw)
In-Reply-To: <19565.1175752023@sss.pgh.pa.us>
References: <7539aebb0704042017l70d83d53u9c2e5105620a3fa7@mail.gmail.com>
	<20070405051127.GA24814@a-kretschmer.de>
	<19157.1175750845@sss.pgh.pa.us>
	<20070405053637.GC24814@a-kretschmer.de>
	<19565.1175752023@sss.pgh.pa.us>

On Thu, Apr 05, 2007 at 01:47:03AM -0400, Tom Lane wrote:
> [ shrug... ]  If the damage is already done, lazy VACUUM won't fix it.
> 

Also, if there are enough open transactions at any one time and
sufficient churn in the table, lazy VACUUM may not be able to keep
up.  (We had that experience with a table that was updated _very
very_ often.  The answer turned out to be to update less often. 
Aggregating queries that could use an index over a large number of
"expired" rows worked better than seqscans over large numbers of dead
tuples.)

A
-- 
Andrew Sullivan  | ajs@crankycanuck.ca
Information security isn't a technological problem.  It's an economics
problem.
		--Bruce Schneier



view thread (11+ messages)

Message-ID: <20070405133316.GC6464@phlogiston.dyndns.org>
Permalink:  ../20070405133316.GC6464@phlogiston.dyndns.org/
Also on:    postgresql.org/message-id/20070405133316.GC6464@phlogiston.dyndns.org

 · 

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-sql@postgresql.org
  Cc: ajs@crankycanuck.ca
  Subject: Re: slow query
  In-Reply-To: <20070405133316.GC6464@phlogiston.dyndns.org>

* 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