Re: Trying to figure out why these queries are so slow - Mailing list pgsql-general

From Tim Uckun
Subject Re: Trying to figure out why these queries are so slow
Date
Msg-id AANLkTi=GTUVCLSNYHsar2eSxUspzo=oy3UwwRujXbnya@mail.gmail.com
Whole thread Raw
In response to Re: Trying to figure out why these queries are so slow  (Thom Brown <thom@linux.com>)
List 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?

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Is there a logical reason for 25P02?
Next
From: Miklosi Attila
Date:
Subject: error messages