Re: Inaccurate row count estimation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Vyacheslav Kalinin" <vka(at)mgcp(dot)com>
Cc: PGSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Inaccurate row count estimation
Date: 2008-07-10 17:09:45
Message-ID: 10684.1215709785@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Vyacheslav Kalinin" <vka(at)mgcp(dot)com> writes:
> Here is the reproduce code:

After tracing through this I see that the problem is that we don't have
statistics for inheritance trees, and so you're getting a default
estimate for the selectivity of the join condition. I'm not sure why
the similar example I tried last night didn't show a bogus-looking
rowcount estimate, but in any case the lack of stats is the real issue.

This should get fixed sometime, but don't hold your breath ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message mark 2008-07-10 17:25:19 storing latitude and longitude
Previous Message William Leite Araújo 2008-07-10 16:52:04 Re: How to obtain info about the user?