Re: index question

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: index question
Дата
Msg-id CAKFQuwZ1HWPbBFVZRhSA+ZCtQ6-nU_+h59babnpBy71uEPeN-A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: index question  ("drum.lucas@gmail.com" <drum.lucas@gmail.com>)
Ответы Re: index question  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general
On Mon, May 2, 2016 at 12:56 PM, drum.lucas@gmail.com <drum.lucas@gmail.com> wrote:


​Index size and index usage are unrelated.  Modifications to the index to keep it in sync with the table do not count as "usage" - only reading it for where clause use counts.​


So only those with 0 size, should be deleted? Is that you're saying?

I'm not offering advice as to when to delete or not delete any particular index.
 
Can you be more clear please?


Probably not :)  

​You cannot make an inference about an index's usage by looking at its size.​  Similarly, a seldom used but large index is not necessarily one you want to remove if doing so causes a once-a-month process that usually take seconds or minutes to now take hours.

David J.

 

В списке pgsql-general по дате отправления:

Предыдущее
От: "drum.lucas@gmail.com"
Дата:
Сообщение: Re: index question
Следующее
От: Tony Nelson
Дата:
Сообщение: Streaming replication - slave server