Re: Oddball data distribution giving me planner headaches

Поиск
Список
Период
Сортировка
От Jeff Amiel
Тема Re: Oddball data distribution giving me planner headaches
Дата
Msg-id 1322867502.54335.YahooMailClassic@web65506.mail.ac4.yahoo.com
обсуждение исходный текст
Ответ на Re: Oddball data distribution giving me planner headaches  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

--- On Fri, 12/2/11, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> The only real fix for that will require cross-column
> statistics, which
> we don't have yet --- without such, there's no way for the
> planner to
> know that distributors have an atypical number of child
> customers.


The only caveat that I can think of here is that each of the customer_id's in the subselect ARE in the MCV list for the
parent_customercolumn for that customer_rel table.  If I had listed SPECIFIC customer ids in the subselect, I would get
spot-onrow estimates.  Is there anything there that gives me any hope? 




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

Предыдущее
От: "Ing.Edmundo.Robles.Lopez"
Дата:
Сообщение: Re: weird negative seconds on checkpoint message.
Следующее
От: Andre Lopes
Дата:
Сообщение: Can't access to database from webapp in PostgreSQL 9.0, from shell it is Ok.