pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Subject: Re: Vacuuming and re-indexing (was Re: Vacuum meaning)
Date: Fri, 3 Jan 2003 18:22:00 +0100
Message-ID: <av4gre$2pnv$1@news.hub.org> (raw)
References: <Pine.LNX.4.50.0301031015260.2549-100000@shishi.roaringpenguin.com>


""David F. Skoll"" <dfs@roaringpenguin.com> wrote in message
news:Pine.LNX.4.50.0301031015260.2549-100000@shishi.roaringpenguin.com...
> > It's possible your suffering index bloat as well and you might need to
> > do some regular reindexing,
>
> Again, this sounds ugly.  How do you determine this?  How do you get your
> database to be reindexed as often as needed, but not too often?

Sound more ugly considering that some times the reindex is not possible
if the server is stressed ( the reindex hang ) for my experience
instead of do a reindex is better delete the indexes and recreate them.

With the following query you can obtain the size of each table or index:

SELECT relname, relpages * 8 AS Mb, reltuples
FROM pg_class
ORDER BY relpages DESC
LIMIT 10;

If you use the 7.3 I think you should multiply for 11.





Ciao
Gaetano.





view thread (4+ messages)  latest in thread

Message-ID: <av4gre$2pnv$1@news.hub.org>
Permalink:  ../av4gre$2pnv$1@news.hub.org/
Also on:    postgresql.org/message-id/av4gre$2pnv$1@news.hub.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mendola@bigfoot.com
  Subject: Re: Vacuuming and re-indexing (was Re: Vacuum meaning)
  In-Reply-To: <av4gre$2pnv$1@news.hub.org>
  References: <Pine.LNX.4.50.0301031015260.2549-100000@shishi.roaringpenguin.com> <av4gre$2pnv$1@news.hub.org>

* 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