| От | tv@fuzzy.cz |
|---|---|
| Тема | Re: Can the query planner create indexes? |
| Дата | |
| Msg-id | 0bceac06db98414e27da53b342aca79e.squirrel@sq.gransy.com обсуждение исходный текст |
| Ответ на | Re: Can the query planner create indexes? (Grzegorz Jaśkiewicz <gryzman@gmail.com>) |
| Список | pgsql-general |
> I don't think planner should do things like creating an index. But it > might hint at doing it in the logs. > There was a discussion around that sort of feature on -hackers not so > long time ago. I don't remember what the conclusion was, but probably > that it just isn't worth wasting planner's cycles when you execute a > query. Yes, that would be a much better solution, definitely. Something like 'watch seq-scan nodes and if the number of matching rows is much smaller than the total number, put a HINT into log.' I was thinking about doing something like this for correlated columns (when the number of matching rows is severely underestimated). But that's far in the future. Tomas
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера