From: Steve Clark <sclark@netwolves.com>
To: Craig Ringer <craig@postnewspapers.com.au>
Cc: Jaime Casanova <jcasanov@systemguards.com.ec>
Cc: raghavendra t <raagavendra.rao@gmail.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to fast the REINDEX
Date: Thu, 01 Apr 2010 07:10:13 -0400
Message-ID: <4BB47F15.4000307@netwolves.com> (raw)
In-Reply-To: <4BB40EE8.2080005@postnewspapers.com.au>
References: <p2ubc7de5a31003311351p83987eedpbb86727ab9fa9ca3@mail.gmail.com>
<4BB3722F02000025000302BF@gw.wicourts.gov>
<j2tbc7de5a31003311433h5c4ce21ej79aa67067e98a4bf@mail.gmail.com>
<j2w3073cc9b1003311525if0fccf56y3a485b26eccc82f7@mail.gmail.com>
<4BB40EE8.2080005@postnewspapers.com.au>
On 03/31/2010 11:11 PM, Craig Ringer wrote:
> Jaime Casanova wrote:
>> On Wed, Mar 31, 2010 at 5:33 PM, raghavendra t
>> <raagavendra.rao@gmail.com> wrote:
>>>>> Why are you doing that?
>>> Our table face lot of updates and deletes in a day, so we prefer reindex to
>>> update the indexes as well overcome with a corrupted index.
>>>
>>
>> do you have a corrupted index? if not, there is nothing to do...
>> REINDEX is not a mantenance task on postgres
>
> Actually, if your free_space_map (pre 8.4) isn't up to keeping track of
> bloat, or autovac isn't running enough, you're likely to get bloat of
> indexes as well as tables that may need VACUUM FULL + REINDEX to
> properly clean up.
>
> It's probably better to fix your fsm/autovac settings then CLUSTER the
> table so it doesn't happen again, though.
>
> --
> Craig Ringer
>
So am I to understand I don't need to do daily reindexing as a maintenance
measure with 8.3.7 on FreeBSD.
--
Stephen Clark
NetWolves
Sr. Software Engineer III
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark@netwolves.com
www.netwolves.com
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: sclark@netwolves.com, craig@postnewspapers.com.au, jcasanov@systemguards.com.ec, raagavendra.rao@gmail.com, Kevin.Grittner@wicourts.gov
Subject: Re: How to fast the REINDEX
In-Reply-To: <4BB47F15.4000307@netwolves.com>
* 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