| From: | Richard Poole <rp(at)guests(dot)deus(dot)net> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Lost indexes |
| Date: | 2003-07-18 11:49:58 |
| Message-ID: | 20030718114958.GD1272@guests.deus.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Viorel Dragomir | 2003-07-18 11:56:53 | Re: Scheduled back up |
| Previous Message | Andrew Sullivan | 2003-07-18 11:45:40 | Re: Scheduled back up |