Re: Interpreting EXPLAIN ANALYSE - Mailing list pgsql-general

From Henry C.
Subject Re: Interpreting EXPLAIN ANALYSE
Date
Msg-id 53b26a55cd89566003801a85518895da.squirrel@zenmail.co.za
Whole thread Raw
In response to Re: Interpreting EXPLAIN ANALYSE  (tv@fuzzy.cz)
Responses Re: Interpreting EXPLAIN ANALYSE  (tv@fuzzy.cz)
List pgsql-general
On Fri, June 3, 2011 13:57, tv@fuzzy.cz wrote:
> There's something very wrong with snames - the planner expects 22 rows but
> gets 164147851. Which probably causes a bad plan choice or something like that.
> Try to analyze the snames table (and maybe increase the statistics
> target on the columns).

ANALYZE is your friend indeed, like a nice cold beer...  from over 500k ms to
1 ms.

I was running ANALYZE on one of the tables in the join, but not the others...
<sigh>


pgsql-general by date:

Previous
From: David Boreham
Date:
Subject: Re: Mixed up protocol packets in server response?
Next
From: tv@fuzzy.cz
Date:
Subject: Re: Interpreting EXPLAIN ANALYSE