| От | Hannu Krosing |
|---|---|
| Тема | Re: Btree doesn't work with ">" condition |
| Дата | |
| Msg-id | 3BFAB4F6.40604@tm.ee обсуждение исходный текст |
| Ответ на | Btree doesn't work with ">" condition (Paolo Cassago <paolo.cassago@talentmanager.com>) |
| Список | pgsql-hackers |
Paolo Cassago wrote: >Hi, > I'm testing PostgreSQL, version 7.1.2, and I create a table, test1, with these kind of fields: > >CREATE TABLE test1 ( > id integer, > content varchar >); > >with 800.000 records, and a btree index setted on the id field. > >I noticed the query uses the index for "=" and "<" operators, but if the value used for the "<" operator is higher (600.000for example), the query makes a seq scan of the table, and the index never works with the ">" operator. Am I managingthe indexes well ? > Have you run VACUUM ANALYZE lately ? What does EXPLAIN think of the costs ? ------------- Hannu
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера