Re: totally different plan when using partitions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scara Maccai <m_lists(at)yahoo(dot)it>
Cc: Richard Huxton <dev(at)archonet(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: totally different plan when using partitions
Date: 2009-08-13 16:48:38
Message-ID: 24039.1250182118@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard Huxton <dev(at)archonet(dot)com> writes:
> Scara Maccai wrote:
>> http://explain-analyze.info/query_plans/3817-query-plan-2525

> Ah, good - that's useful.

Hmmm ... why is the inner Nested Loop estimated to produce 30120 rows,
when the cartesian product of its inputs would only be 285 * 14 = 3990
rows? What PG version is this, and can you extract a self-contained
test case with an equally silly estimate?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2009-08-13 16:50:20 Re: array syntax and geometric type syntax
Previous Message Philip Rhoades 2009-08-13 16:36:07 Re: PostgreSQL for Firefox Bookmarks?