| От | Norbert Zoltan Toth |
|---|---|
| Тема | Re: Index usage question |
| Дата | |
| Msg-id | 014101c13572$cfbc1bc0$11278a89@cern.ch обсуждение исходный текст |
| Ответ на | Index usage question (Jefim Matskin <mjefim@sphera.com>) |
| Ответы |
Re: Index usage question
|
| Список | pgsql-general |
I have experienced the following problem, maybe they are related:
I create a table with
create table test (id int, name char(10));
then I create an index on it with
create index test_idx on test (id);
After populating my table, the query
select id from test where id='1';
uses index scan.
However when I only create the index AFTER inserting rows into the table,
the index is not being used for the evaluation,
even if I run vacuum / vaccum analyze on test;
I would also appreciate some help with this.
Thank you,
Norbert
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера