| От | Tom Lane |
|---|---|
| Тема | Re: Indexes not working (bug in 7.0.2?) |
| Дата | |
| Msg-id | 8386.968017239@sss.pgh.pa.us обсуждение |
| Ответ на | Indexes not working (bug in 7.0.2?) (Zlatko Calusic <zlatko@iskon.hr>) |
| Список | pgsql-general |
Zlatko Calusic <zlatko@iskon.hr> writes: > It is now NOT using the index, and I don't understand why? Queries are > practically the same, tables are practically the same, why is postgres > using indexes in the first case and not in the second? Because it has substantially different ideas about the sizes of the two tables --- notice the different estimated row counts. If you haven't "vacuum analyzed" these tables recently, do so to bring the planner's statistics up-to-date, and then see what you get. You may also care to read the user's manual chapter about EXPLAIN, http://www.postgresql.org/users-lounge/docs/7.0/postgres/c4888.htm regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера