pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Pundt <mlists@rp-online.de>
To: pgsql-performance@postgresql.org, "Denis Lishtovny" <d.lishtovny@chronopay.com>
Subject: Re: How to determine which indexes are not using or using seldom in database
Date: Mon, 2 Apr 2007 10:45:13 +0200
Message-ID: <200704021045.13239.mlists@rp-online.de> (raw)
In-Reply-To: <20070402081739.696D19FB609@postgresql.org>
References: <20070402081739.696D19FB609@postgresql.org>

Hi,

On Monday 02 April 2007 10:12, Denis Lishtovny wrote:
| I have a lot of tables and indexes in database. I must to determine which
| indexes are not using or using seldon in databese . I enabled all posible
| statistics in config but a can`t uderstand how to do this.
| Thanks.

Try "select * from pg_stat_user_indexes;" - that should give you a good start
to look at.

| p.s for example i need this to reduce database size for increase backup and
| restore speed.

Deleting indexes won't reduce backup size noticeably (but has impact on 
restore speed), if you use pg_dump for backup.

Ciao,
Thomas

-- 
Thomas Pundt <thomas.pundt@rp-online.de> ---- http://rp-online.de/ ----



view thread (3+ messages)

Message-ID: <200704021045.13239.mlists@rp-online.de>
Permalink:  ../200704021045.13239.mlists@rp-online.de/
Also on:    postgresql.org/message-id/200704021045.13239.mlists@rp-online.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mlists@rp-online.de, d.lishtovny@chronopay.com
  Subject: Re: How to determine which indexes are not using or using seldom in database
  In-Reply-To: <200704021045.13239.mlists@rp-online.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox