Re: Trying to figure out why these queries are so slow

From: Tim Uckun <timuckun(at)gmail(dot)com>
To: Thom Brown <thom(at)linux(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trying to figure out why these queries are so slow
Date: 2010-10-05 11:19:12
Message-ID: AANLkTi=GTUVCLSNYHsar2eSxUspzo=oy3UwwRujXbnya@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> I'd still recommend manually running ANALYZE on any involved tables,
> just in case.
>

Just out of curiosity....

Say I did run it. Would it make the query run a few orders of magnitude faster?

If you read my original post you'd see that I let the query run for
over an hour before I killed it. It seems to me that a query joining
two tables on primary keys, updating one field on one table with
another field on another table on less than 100K records ought to take
less than three minutes.

Do the database statistics go that far out of whack especially if
autovacuum is on?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Miklosi Attila 2010-10-05 11:19:36 error messages
Previous Message Craig Ringer 2010-10-05 11:13:32 Re: Is there a logical reason for 25P02?