On Tue, Nov 1, 2016 at 8:43 AM, François Battail <francois.battail@xxxxxxxxxx> 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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general