Understanding pg_stat_user_indexes - Mailing list pgsql-general

From Steve Crawford
Subject Understanding pg_stat_user_indexes
Date
Msg-id 4B6C4F40.3020409@pinpointresearch.com
Whole thread Raw
Responses Re: Understanding pg_stat_user_indexes  (Josh Kupershmidt <schmiddy@gmail.com>)
List 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


pgsql-general by date:

Previous
From: Moe
Date:
Subject: Searching a DB index.. possible?
Next
From: Mike Ginsburg
Date:
Subject: Re: Verify a record has a column in a plpgsql trigger