Re: WIP: cross column correlation ...

Поиск
Список
Период
Сортировка
От PostgreSQL - Hans-Jürgen Schönig
Тема Re: WIP: cross column correlation ...
Дата
Msg-id 1CFB88AD-B7E4-4CED-A048-2292E5888B05@cybertec.at
обсуждение исходный текст
Ответ на Re: WIP: cross column correlation ...  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
>>>
>>
>> cheapest and easiest solution if you run into this: add "fake" functions which the planner cannot estimate properly.
>> use OR to artificially prop up estimates or use AND to artificially lower them. there is actually no need to
redesignthe schema to get around it but it is such an ugly solution that it does not even deserve to be called "ugly"
...
>> however, fast and reliable way to get around it.
>
> We couldn't possibly design a hint mechanism that would be uglier or
> less future-proof than this workaround (which, by the way, I'll keep
> in mind for the next time I get bitten by this).
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>


i think the main issue is: what we do is ugly because of despair and a lack of alternative ... what you proposed is
uglyby design ;). 
overall: the workaround will win the ugliness contest, however ;).
many thanks,
    hans

--
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt, Austria
Web: http://www.postgresql-support.de



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: WIP: cross column correlation ...
Следующее
От: PostgreSQL - Hans-Jürgen Schönig
Дата:
Сообщение: Re: WIP: cross column correlation ...