Re: An Idea for planner hints

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: An Idea for planner hints
Дата
Msg-id
19477.1155130933@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Re: An Idea for planner hints Perez <i@donotexist.com>
Re: An Idea for planner hints "Jim C. Nasby" <jnasby@pervasive.com>
"Florian G. Pflug"  writes:
> Image a complex, autogenerated query with looks something like this
> select ....
> from t1
> join t2 on ...
> join t3 on ...
> join t4 on ...
> ...
> ...
> where
>    .

> This big, complicated expression looks different for every query - and
> currently, postgres often vastly overestimates the selectivity of this
> expression.

This is a straw man.  There is no way that your application can throw in
a chosen-at-random selectivity value for a join condition that it
doesn't understand and have that be more likely to be right than the
planner's guess.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Joshua D. Drake
Дата:
Сообщение: Re: 8.2 features status
От: Tom Lane
Дата:
Сообщение: Re: Casts
FAQ