pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Speed Up clean_pending.pl?
2+ messages / 2 participants
[nested] [flat]

* Speed Up clean_pending.pl?
@ 2005-07-29 09:36  John Abel <jabel@plus.net>
  0 siblings, 1 reply; 2+ messages in thread

From: John Abel @ 2005-07-29 09:36 UTC (permalink / raw)
  To: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Speed Up clean_pending.pl?
@ 2005-07-29 13:33  Guido Barosio <gbarosio@gmail.com>
  parent: John Abel <jabel@plus.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Guido Barosio @ 2005-07-29 13:33 UTC (permalink / raw)
  To: John Abel <jabel@plus.net>; +Cc: pgsql-admin

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.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-07-29 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-29 09:36 Speed Up clean_pending.pl? John Abel <jabel@plus.net>
2005-07-29 13:33 ` Guido Barosio <gbarosio@gmail.com>

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