Re: Statistics on index usage

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Statistics on index usage
Дата
Msg-id CAOR=d=3iVO9a=1EH_5mLbENJsadgygpTZyYfvA_QNZ7RR5TzAw@mail.gmail.com
обсуждение исходный текст
Ответ на Statistics on index usage  (François Battail <francois.battail@sipibox.fr>)
Список pgsql-general
On Tue, Nov 1, 2016 at 8:43 AM, François Battail
<francois.battail@sipibox.fr> wrote:
> Dear List,
>
> does pgsql maintains statistics on index usage? I mean just a counter
> for each index in the database, incremented each time time it is used.
> It would be useful to help cleaning almost unused index and to avoid
> poisoning the global cache.
>
> I've found nothing so far but may be I've been missing something.

Yup it does keep track of index usage. To see all the various stuff
postgres keeps track of etc, try typing

select * from pg_ then hit tab. The two common ones I look at are:

pg_statio_all_indexes
pg_stat_user_indexes


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

Предыдущее
От: François Battail
Дата:
Сообщение: Statistics on index usage
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: Statistics on index usage