| От | Tom Lane |
|---|---|
| Тема | Re: Cost estimation in foreign data wrappers |
| Дата | |
| Msg-id | 32373.1392994517@sss.pgh.pa.us обсуждение |
| Ответ на | Cost estimation in foreign data wrappers (Hadi Moshayedi <hadi@moshayedi.net>) |
| Список | pgsql-hackers |
Hadi Moshayedi <hadi@moshayedi.net> writes:
> There is a callback function in fdw's which should also set estimates for
> startup and total costs for each path. Assume a fdw adds only one path
> (e.g. in file_fdw). I am trying to understand what can go wrong if we do a
> bad job in estimating these costs.
> Since we have only one scan path here, it doesn't make a difference in
> choosing the best scan path.
Right. But if there's more than one table in the query, it might make a
difference in terms of what join plan gets chosen. I'd say that getting
an accurate rowcount estimate is usually far more important, though.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера