Re: Index not used for simple query, and yes I ran vacuum analyze
В списке pgsql-novice по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Index not used for simple query, and yes I ran vacuum analyze |
| Дата | |
| Msg-id | 1589.1001527708@sss.pgh.pa.us обсуждение |
| Ответ на | Index not used for simple query, and yes I ran vacuum analyze (Matthew Braithwaite <mab-lists@braithwaite.net>) |
| Список | pgsql-novice |
Matthew Braithwaite <mab-lists@braithwaite.net> writes:
> I RTFM but I'm still confused. I have a table, headers
>> mab=> \d headers
>> Table "headers"
>> Attribute | Type | Modifier
>> -----------+---------+---------------------------------------------------------
>> header_id | integer | not null default nextval('headers_header_id_seq'::text)
>> part_id | integer | not null
>> key | text |
>> value | text |
>> Index: headers_pkey
> I have indexed the table by part_id:
>> mab=> \d headers_ref_idx
>> Index "headers_ref_idx"
>> Attribute | Type
>> -----------+---------
>> part_id | integer
>> btree
Um, it sure looks like that index is not on that table. Note that the
"\d headers" output shows only one index, named headers_pkey.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера