Re: BUG #5733: Strange planer behaviour with inherited tables
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #5733: Strange planer behaviour with inherited tables |
| Дата | |
| Msg-id | 20420.1288536732@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | BUG #5733: Strange planer behaviour with inherited tables ("Marcus Wirsing" <mw@hesotech.de>) |
| Список | pgsql-bugs |
"Marcus Wirsing" <mw@hesotech.de> writes:
> when I execute the following script, the planer always makes a seq. scan
> over all child tables.
> when I remove the min_mv real[] the planer makes an index scan as expected.
I see no bug here. Adding or removing a column changes the estimated
width of rows, hence the estimated row counts, and that makes some small
differences in the cost estimates. For empty toy tables like these,
the cost estimates for different scan types are close enough together
that seemingly irrelevant details can change the outcome.
If you've got an actual problem, it's unlikely that discussing trivial
examples like this will help get to the bottom of it. We'd need to look
at example tables that have realistic statistics.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера