Understanding pg_stat_user_indexes

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Understanding pg_stat_user_indexes
Date: 2010-02-05 17:02:56
Message-ID: 4B6C4F40.3020409@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

What causes an increment to idx_scan in pg_stat_user_indexes? "Select"
queries only? When used to enforce column uniqueness? When used for
foreign-key constraints?

I see lots of indexes with an idx_scan-count of zero but which are not
actually superfluous as they are required to enforce constraints.

Ultimately, I'm trying to come up with a better way to search for truly
useless indexes.

Cheers,
Steve

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Farrer, Rhys 2010-02-05 17:06:33 a quick question
Previous Message Moe 2010-02-05 15:48:09 Searching a DB index.. possible?