| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Indexes bug |
| Дата | |
| Msg-id | 27067.902848687@sss.pgh.pa.us обсуждение |
| Ответ на | Indexes bug (Serj <fenix@am.ring.ru>) |
| Ответы |
Re: [HACKERS] Indexes bug
|
| Список | pgsql-hackers |
Serj <fenix@am.ring.ru> writes:
> [ system not using an index when it should ]
Two questions:
1. Did you do a "vacuum analyze" after making the indexes?
Without that, the optimizer may be choosing a sequential scan
because it doesn't know how big the tables are.
2. What postgres version are you using?
There are some bugs in the current cvs sources that affect whether
indexes get used --- look at the ongoing threads in the hackers list.
Maybe you've found another manifestation of that problem. But if
you're using 6.3.2 then it's something different...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера