Re: BUG #16759: Estimation of the planner is wrong for hash join

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #16759: Estimation of the planner is wrong for hash join
Дата
Msg-id 1672657.1606940979@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #16759: Estimation of the planner is wrong for hash join  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> The following query estimated number of lines returned is 1 while it should
> be around 67 or more : 
> explain analyze select * from enterprise where parent_enterprise in (select
> enterprise_id from enterprise par where global_attribute15 = 'BEL');

I failed to reproduce this result, which is unsurprising given the
lack of context.  Can you provide a self-contained example?

I think that highly accurate estimates are unlikely in this situation,
but it is odd that "parent_enterprise in (select...)" is estimating
fewer rows than "parent_enterprise = something".

            regards, tom lane



В списке pgsql-bugs по дате отправления: