pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yves Vindevogel <yves.vindevogel@implements.be>
To: pgsql-performance@postgresql.org
Subject: Re: Another question on indexes (drop and recreate)
Date: Tue, 21 Jun 2005 18:43:58 +0200
Message-ID: <09f30bc29a91c94eecaf7f70aa0c8399@implements.be> (raw)
In-Reply-To: <42B83708.2050706@arbash-meinel.com>
References: <098952ec5af9b040acb9b6b5af743abd@implements.be>
	<42B830B3.6060902@arbash-meinel.com>
	<821370985653dc1f4166ca634f642ce2@implements.be>
	<42B83708.2050706@arbash-meinel.com>

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


Mail: yves.vindevogel@implements.be  - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be

First they ignore you.  Then they laugh at you.  Then they fight you.  
Then you win.
Mahatma Ghandi.

Attachments:

Pasted Graphic 2.tiff (image/tiff, 5.6K) download view image

view thread (7+ messages)  latest in thread

Message-ID: <09f30bc29a91c94eecaf7f70aa0c8399@implements.be>
Permalink:  ../09f30bc29a91c94eecaf7f70aa0c8399@implements.be/
Also on:    postgresql.org/message-id/09f30bc29a91c94eecaf7f70aa0c8399@implements.be

 · 

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: yves.vindevogel@implements.be
  Subject: Re: Another question on indexes (drop and recreate)
  In-Reply-To: <09f30bc29a91c94eecaf7f70aa0c8399@implements.be>

* 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