Re: CPU Intensive query - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: CPU Intensive query
Date
Msg-id 20070518223529.GC17690@uio.no
Whole thread Raw
In response to Re: CPU Intensive query  ("Steinar H. Gunderson" <sgunderson@bigfoot.com>)
List pgsql-performance
On Sat, May 19, 2007 at 12:32:33AM +0200, Steinar H. Gunderson wrote:
> Did you ANALYZE your tables recently? If the joins are really between
> millions of rows and the planner thinks it's a couple thousands, the stats
> sound rather off...

Sorry, I forgot your first e-mail where you said you had both vacuumed and
analyzed recently. The estimates are still off, though -- the WHERE query
might be difficult to estimate properly. (I'm not sure how Tom arrived on
his conclusion of expensive user-defined functions, but given the usual
precisions of his guesses, I'd check that too...)

/* Steinar */
--
Homepage: http://www.sesse.net/

pgsql-performance by date:

Previous
From: "Steinar H. Gunderson"
Date:
Subject: Re: CPU Intensive query
Next
From: Craig James
Date:
Subject: Re: 121+ million record table perf problems