Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting? - Mailing list pgsql-performance

From raghu ram
Subject Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting?
Date
Msg-id BANLkTimeo-P+=fxKzui1Md2Siq_YJ7ASug@mail.gmail.com
Whole thread Raw
In response to since when has pg_stat_user_indexes.idx_scan been counting?  (Willy-Bas Loos <willybas@gmail.com>)
List pgsql-performance


On Thu, May 12, 2011 at 9:09 PM, Willy-Bas Loos <willybas@gmail.com> wrote:
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 ?


"Analyze" activity will update the statistics of each catalog table.

pg_postmaster_start_time --> Retrieves the Postmaster [ PostgreSQL Instance] start time

postgres=# select pg_postmaster_start_time();

--Raghu Ram

pgsql-performance by date:

Previous
From: Lucas Madar
Date:
Subject: Re: Poor performance when joining against inherited tables
Next
From: Tomas Vondra
Date:
Subject: Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting?