Skip site navigation (1) Skip section navigation (2)

Re: Another question on indexes (drop and recreate)

From: Yves Vindevogel <yves(dot)vindevogel(at)implements(dot)be>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Another question on indexes (drop and recreate)
Date: 2005-06-21 16:43:58
Message-ID: 09f30bc29a91c94eecaf7f70aa0c8399@implements.be (view raw or flat)
Thread:
Lists: pgsql-performance
I only add records, and most of the values are "random"
Except the columns for dates, ....

On 21 Jun 2005, at 17:49, John A Meinel wrote:

> Yves Vindevogel wrote:
>
>> And, after let's say a week, would that index still be optimal or
>> would it be a good idea to drop it in the weekend and recreate it.
>
>
> It depends a little bit on the postgres version you are using. If you
> are only ever adding to the table, and you are not updating it or
> deleting from it, I think the index is always optimal.
> Once you start deleting from it there are a few cases where older
> versions would not properly re-use the empty entries, requiring a
> REINDEX. (Deleting low numbers and always adding high numbers was one 
> of
> the cases)
>
> However, I believe that as long as you vacuum often enough, so that the
> system knows where the unused entries are, you don't ever have to drop
> and re-create the index.
>
> John
> =:->
>
>
Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements


Attachment: Pasted Graphic 2.tiff
Description: image/tiff (5.6 KB)

In response to

Responses

pgsql-performance by date

Next:From: John A MeinelDate: 2005-06-21 16:54:55
Subject: Re: Another question on indexes (drop and recreate)
Previous:From: Don VaillancourtDate: 2005-06-21 16:12:34
Subject: unsubscribe

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group