Re: How to fast the REINDEX

From: Brad Nicholson <bnichols(at)ca(dot)afilias(dot)info>
To: raghavendra t <raagavendra(dot)rao(at)gmail(dot)com>
Cc: Pierre C <lists(at)peufeu(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, greg(at)2ndquadrant(dot)com, hannu(at)2ndquadrant(dot)com, sclark(at)netwolves(dot)com, craig(at)postnewspapers(dot)com(dot)au, jorge_montero(at)homedecorators(dot)com, pgsql-performance(at)postgresql(dot)org
Subject: Re: How to fast the REINDEX
Date: 2010-04-01 13:52:55
Message-ID: 1270129975.5155.317.camel@bnicholson-desktop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, 2010-04-01 at 19:17 +0530, raghavendra t wrote:
>
> Hi All,
>
> System Config
> ---------------------
> CPU - Intel® Xenon® CPU
> CPU Speed - 3.16 GHz
> Server Model - Sun Fire X4150
> RAM-Size - 16GB
>
> Steve:
> So am I to understand I don't need to do daily reindexing as a
> maintenance measure with 8.3.7 on FreeBSD.
>
> My question is something like Steve's, why we should not do reindexing
> as our maintenance task. I was doing reindex only to get
> a best fit and not fall short of 90% hole, bcoz my table has lot of
> updates and deletes. We also has the weekly maintance of VACUUM, but
> still reindex takes lot of time.

This is your problem. You should enable autovaccuum, let the vacuums
happen more frequently, and this problem will go away. You will still
have to fix the underlying bloat a last time though.

--
Brad Nicholson 416-673-4106
Database Administrator, Afilias Canada Corp.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Grittner 2010-04-01 14:19:56 Re: How to fast the REINDEX
Previous Message raghavendra t 2010-04-01 13:47:15 Re: How to fast the REINDEX