pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guido Barosio <gbarosio@gmail.com>
To: John Abel <jabel@plus.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Speed Up clean_pending.pl?
Date: Fri, 29 Jul 2005 14:33:52 +0100
Message-ID: <f7f6b4c7050729063359ff2d31@mail.gmail.com> (raw)
In-Reply-To: <42E9F889.10604@plus.net>
References: <42E9F889.10604@plus.net>

sql `set enable_seqscan to off;` may help here?

Regards,
g



On 7/29/05, John Abel <jabel@plus.net> wrote:
> 
> Hi,
> 
> The company I'm at is running dbmirror, and we've found a problem with
> clean_pending,pl, in that it takes an age to run. I've done some
> looking about, and came with up this:
> 
> http://www.postgresql.org/docs/7.4/interactive/indexes.html
> 
> After reading the comments on that page, I explain'd the query that
> clean_pending runs, and found that it is performing a sequential scan on
> each of the tables.
> 
> Is there a way to make it use the indexes?
> 
> Any help would be appreciated.
> 
> Thanks
> 
> John
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
> 



-- 
"Adopting the position that you are smarter than an automatic
optimization algorithm is generally a good way to achieve less
performance, not more" - Tom Lane.

view thread (2+ messages)

Message-ID: <f7f6b4c7050729063359ff2d31@mail.gmail.com>
Permalink:  ../f7f6b4c7050729063359ff2d31@mail.gmail.com/
Also on:    postgresql.org/message-id/f7f6b4c7050729063359ff2d31@mail.gmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: gbarosio@gmail.com, jabel@plus.net
  Subject: Re: Speed Up clean_pending.pl?
  In-Reply-To: <f7f6b4c7050729063359ff2d31@mail.gmail.com>
  References: <42E9F889.10604@plus.net> <f7f6b4c7050729063359ff2d31@mail.gmail.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