Re: index question - Mailing list pgsql-general

From David G. Johnston
Subject Re: index question
Date
Msg-id CAKFQuwZ1HWPbBFVZRhSA+ZCtQ6-nU_+h59babnpBy71uEPeN-A@mail.gmail.com
Whole thread Raw
In response to Re: index question  ("drum.lucas@gmail.com" <drum.lucas@gmail.com>)
Responses Re: index question
List 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 by date:

Previous
From: "drum.lucas@gmail.com"
Date:
Subject: Re: index question
Next
From: Tony Nelson
Date:
Subject: Streaming replication - slave server