| От | Tom Lane |
|---|---|
| Тема | Re: Forcing the use of one index instead other. |
| Дата | |
| Msg-id | 15048.1243962742@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Forcing the use of one index instead other. ("Edmundo Robles L." <erobles@sensacd.com.mx>) |
| Список | pgsql-general |
"Edmundo Robles L." <erobles@sensacd.com.mx> writes: > I have two index with a same field into them like this: > create index numberfail on Events (numberfail); > and > create index failtype on Events (numberfail,eventtype); > then i ran explain analyze and always took the numberfail index but i wish the failtype index; Uh, why? If you have the smaller index available it's hard to imagine any sane reason not to use it. > I though maybe if i delete the index numberfail could works, but i don't know if the another program > will fail if the numberfail index does'nt exists. No, you can drop that one if you want to. You might care to read the fine manual about index design: http://www.postgresql.org/docs/8.3/static/indexes.html regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера