Re: Unused indices

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Benjamin Krajmalnik <kraj(at)servoyant(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Unused indices
Date: 2011-02-23 21:17:16
Message-ID: 4D65795C.20404@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Benjamin Krajmalnik wrote:
>
>
> Index Scans 0
>
> Index Tuples Read 0
>
> Index Tuples Fetched 0
>
> Index Blocks Read 834389
>
> Index Blocks Hit 247283300
>
> Index Size 1752 kB
>
>
>
>
>
> Since there are no index scans, would it be safe to remove this one?
>

Yes. The block usage you're seeing there reflects the activity from
maintaining the index. But since it isn't ever being used for queries,
with zero scans and zero rows it's delivered to clients, it's not doing
you any good. Might as well reclaim your 1.7MB of disk space and reduce
overhead by removing it.

--
Greg Smith 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2011-02-23 21:37:34 Re: NULLS LAST performance
Previous Message Merlin Moncure 2011-02-23 19:59:12 Re: performance issue in the fields.