Re: Fuzzy cost comparison to eliminate redundant planning work
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Fuzzy cost comparison to eliminate redundant planning work |
| Дата | |
| Msg-id | 22054.1080540354@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Fuzzy cost comparison to eliminate redundant planning (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: Fuzzy cost comparison to eliminate redundant planning
|
| Список | pgsql-hackers |
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Do we know in the optimizer whether we will be needing cheapest startup
> or not?
No. Higher levels might want either.
> Is the middle one kept because the optimizer has to mix the startup plus
> some percentage of the total cost for queries using LIMIT?
Right. There are potentially some ranges of LIMIT for which it could
win, I believe. Maybe with some math you could prove there is no range
in which the other two don't dominate it, but I suspect the extra logic
would slow down add_path more than it's worth.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера