Re: How to find out unused indexes?
От | ascot.moss@gmail.com |
---|---|
Тема | Re: How to find out unused indexes? |
Дата | |
Msg-id | FEC18E10-FEAF-4761-A8D7-F7BE0D6EB4B8@gmail.com обсуждение исходный текст |
Ответ на | Re: How to find out unused indexes? (Abdul Sayeed <abdulsayeed24@gmail.com>) |
Ответы |
Re: How to find out unused indexes?
|
Список | pgsql-general |
Thanks.
how about the case as follows?
idx_scan = 0 and idx_tup_read = 0 and idx_tup_fetch = 0, but
idx_blks_read is not 0 and idx_blks_hit is not 0
?
regards
On 3 Sep 2013, at 5:31 PM, Abdul Sayeed wrote:
Hi,Below query can be handy to find unused indexes.select indexrelname from pg_stat_user_indexes where idx_scan = 0 and idx_tup_read = 0 and idx_tup_fetch = 0 ;Hope it helps.Thanks & Regards,Abdul SayeedEnterpriseDB Corporation - RDBA TeamThe Postgres Database CompanyOffice: +1-732-931-7033/+91-20-305-89510Fax: +91-20-30589502Skype: abdul.sayeed24Website: www.enterprisedb.comEnterpriseDB Blog : http://blogs.enterprisedb.comFollow us on Twitter : http://www.twitter.com/enterprisedbThis e-mail message (and any attachment) is intended for the use of the individual or entity to whom it is addressed. This message contains information from EnterpriseDB Corporation that may be privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient or authorized to receive this for the intended recipient, any use, dissemination, distribution,retention, archiving, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and delete this message.On Tue, Sep 3, 2013 at 12:14 PM, Raghavendra <raghavendra.rao@enterprisedb.com> wrote:Hi,
Can you please advise how to find out all unused indexes in PG?
regardsBelow wiki link should help; under "Unused Index" section:---
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
В списке pgsql-general по дате отправления: