Re: Interpreting EXPLAIN ANALYSE

From: "Henry C(dot)" <henka(at)cityweb(dot)co(dot)za>
To: tv(at)fuzzy(dot)cz
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Interpreting EXPLAIN ANALYSE
Date: 2011-06-03 18:13:53
Message-ID: 53b26a55cd89566003801a85518895da.squirrel@zenmail.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, June 3, 2011 13:57, tv(at)fuzzy(dot)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>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message tv 2011-06-03 18:32:39 Re: Interpreting EXPLAIN ANALYSE
Previous Message Rob Richardson 2011-06-03 16:42:09 Re: PostgreSQL service won't start after bad computer time