| From: | Emanuel Calvo Franco <postgres(dot)arg(at)gmail(dot)com> |
|---|---|
| To: | kbarnard(at)kevinbarnard(dot)net |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Index utilization |
| Date: | 2009-08-14 14:07:43 |
| Message-ID: | f205bb120908140707j514ef58ey3f61ed26087eb86c@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
2009/8/13 <kbarnard(at)kevinbarnard(dot)net>:
> I am working on cleaning up a bloated database. I have been reindexing etc.
> There appear to be a good number of never to almost never used indexes. I
> am looking in pg_stat_user_indexes which yields some questions.
>
> Assuming that the reset stats on server is not turned on how old are stats?
>
Old as your first start of the server. Except if you made a
total dump of the database that could erase them.
> Are there any good open source tools to monitor how often indexes are used?
>
It's too specific. But your question is interesting to analyze
this kind of features.
> I was basically thinking of writing end of day numbers for the stats in a
> table so I can plot index usage over a few months to see what is getting
> used. Does anybody see a problem with that?
>
Could be for the firsts months, then you will not need it
any more. but sounds charm for me. If i can offer some code
let me know :)
--
Emanuel Calvo Franco
Database consultant at:
www.siu.edu.ar
www.emanuelcalvofranco.com.ar
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2009-08-14 14:36:57 | Re: pgstatindex |
| Previous Message | Sam Mason | 2009-08-14 14:00:47 | Re: adding a nullable col could rewrite the whole table? |