Vacuum and index

From: Jean-Marc Pigeon <jmp(at)safe(dot)ca>
To: pgsql-admin(at)postgresql(dot)org
Cc: jmp(at)new-york(dot)safe(dot)ca (Jean-Marc Pigeon)
Subject: Vacuum and index
Date: 2000-11-10 03:05:47
Message-ID: 200011100305.eAA35lT16490@new-york.safe.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Bonjour,

Loading data (around 112000 record) to a newly created
data-base, I am able to do select such as:

select * from userreg where userid='cynthiaU';

Where 'userid' is defined as:
userid VARCHAR(30) UNIQUE,
in the table.

Everything work fine, as soon I run vacuum
on this data-base some of the records "disappear",
(say 10%) such the previous select is not responding, while

select * from userreg where userid~*'cynthiaU';

is still responding.
Obviously there is an index problem, If drop and
create the index related to the table, everything
comeback fine....

Questions:
1) Why index become mis-aligned after a data-base
vacuum?
2) Is there a way to keep table and index aligned under
vacuum?



A bientot
==========================================================================
Jean-Marc Pigeon Internet: Jean-Marc(dot)Pigeon(at)safe(dot)ca
SAFE Inc. Phone: (514) 493-4280 Fax: (514) 493-1946
REGULUS, a real time accounting/billing package for ISP
REGULUS' Home base <"http://www.regulus.safe.ca">
==========================================================================

Browse pgsql-admin by date

  From Date Subject
Next Message Dronamraju Rajesh 2000-11-10 03:16:25 Re: Implementing mod_perl, Perl 5.004, and Postgres
Previous Message Peter Eisentraut 2000-11-09 21:58:09 Re: Implementing mod_perl, Perl 5.004, and Postgres