| От | Doug McNaught |
|---|---|
| Тема | Re: Lack of use of indexes |
| Дата | |
| Msg-id | m3hee9hatv.fsf@varsoon.wireboard.com обсуждение исходный текст |
| Ответ на | Lack of use of indexes (Don Isgitt <djisgitt@soundenergy.com>) |
| Список | pgsql-general |
Don Isgitt <djisgitt@soundenergy.com> writes: > Hello. > > I have a question regarding the lack of use of indexes on a table; I > have included what I hope is all the relevant information. Your help > is appreciated. Use "varchar" or "text" instead of "character" for your column types and it should work. IIRC, "character" is treated slightly differently from other text types in the query optimizer, and string constants default to type "text". As far as why the integer index isn't being used, I'm not sure. Does it use the index if you change the WHERE clase to " section = '14' "? -Doug
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера