From: | raghu ram <raghuchennuru(at)gmail(dot)com> |
---|---|
To: | Willy-Bas Loos <willybas(at)gmail(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: [PERFORM] since when has pg_stat_user_indexes.idx_scan been counting? |
Date: | 2011-05-12 18:22:53 |
Message-ID: | BANLkTimeo-P+=fxKzui1Md2Siq_YJ7ASug@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-performance |
On Thu, May 12, 2011 at 9:09 PM, Willy-Bas Loos <willybas(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Willy-Bas Loos | 2011-05-12 20:03:27 | Re: [PERFORM] since when has pg_stat_user_indexes.idx_scan been counting? |
Previous Message | Tomas Vondra | 2011-05-12 18:19:41 | Re: since when has pg_stat_user_indexes.idx_scan been counting? |
From | Date | Subject | |
---|---|---|---|
Next Message | Aren Cambre | 2011-05-12 18:25:04 | Re: Postgres refusing to use >1 core |
Previous Message | Tomas Vondra | 2011-05-12 18:19:41 | Re: since when has pg_stat_user_indexes.idx_scan been counting? |