Re: since when has pg_stat_user_indexes.idx_scan been counting?

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: since when has pg_stat_user_indexes.idx_scan been counting?
Дата
Msg-id 4DCC24BD.9040900@fuzzy.cz
обсуждение исходный текст
Ответ на since when has pg_stat_user_indexes.idx_scan been counting?  (Willy-Bas Loos <willybas@gmail.com>)
Ответы Re: since when has pg_stat_user_indexes.idx_scan been counting?  (Greg Smith <greg@2ndquadrant.com>)
Список pgsql-performance
Dne 12.5.2011 17:39, Willy-Bas Loos napsal(a):
> Hi,
>
> We have some indexes that don't seem to be used at all.
> I'd like to know since when they have not been used.
> That is, the time when postgres started counting to reach the number
> that is in pg_stat_user_indexes.idx_scan
>
> Is there a way to retrieve that from the database ?

BTW it's really really tricky to remove indexes once they're created.
What if the index is created for a single batch process that runs once a
year to close the fiscal year etc?

So be very careful about this.

Tomas

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: since when has pg_stat_user_indexes.idx_scan been counting?
Следующее
От: Aren Cambre
Дата:
Сообщение: Re: Postgres refusing to use >1 core