Re: Lost indexes - Mailing list pgsql-general

From Richard Poole
Subject Re: Lost indexes
Date
Msg-id 20030718114958.GD1272@guests.deus.net
Whole thread Raw
In response to Lost indexes  ("Vilson farias" <vilson.farias@digitro.com.br>)
List pgsql-general
On Fri, Jul 18, 2003 at 08:26:59AM -0300, Vilson farias wrote:
> Greetings,
>
>   I've been fighting against a very strange behaviour found in PostgreSQL
> 7.1.2 on a RedHat 6.2. I have a very simple table called site_site and I
> lost it's indexes everytime I run a vaccum. Do you know why this happens? Is
> there a way to get around or fix this kind of problem?I put a full sequence
> of steps I've used to make it happen.

The indexes are not lost; after you have done an ANALYZE, the system
knows that they won't speed up your queries, so it chooses sequential
scans instead. If you put a lot of data in the table and ANALYZE again,
you'll find that the indexes are used.

Richard

pgsql-general by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: Scheduled back up
Next
From: "Viorel Dragomir"
Date:
Subject: Re: Scheduled back up