Unix Technical Forum

Speed Up clean_pending.pl?

This is a discussion on Speed Up clean_pending.pl? within the pgsql Admins forums, part of the PostgreSQL category; --> Hi, The company I'm at is running dbmirror, and we've found a problem with clean_pending,pl, in that it takes ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:03 AM
John Abel
 
Posts: n/a
Default Speed Up clean_pending.pl?

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/i...e/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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 06:03 AM
Guido Barosio
 
Posts: n/a
Default Re: Speed Up clean_pending.pl?

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/i...e/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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com