Re: Speed Up clean_pending.pl?

From: Guido Barosio <gbarosio(at)gmail(dot)com>
To: John Abel <jabel(at)plus(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Speed Up clean_pending.pl?
Date: 2005-07-29 13:33:52
Message-ID: f7f6b4c7050729063359ff2d31@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Regards,
g

On 7/29/05, John Abel <jabel(at)plus(dot)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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Hoover 2005-07-29 13:48:28 Is there anyway to retrieve server name and/or ip from query
Previous Message Kailash Vyas 2005-07-29 13:24:15 postgres optimization