Received: from new-york.safe.ca (modemcable102.137-200-24.mtl.mc.videotron.ca [24.200.137.102]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eAA36Us89382 for ; Thu, 9 Nov 2000 22:06:30 -0500 (EST) (envelope-from jmp@new-york.safe.ca) Received: (from jmp@localhost) by new-york.safe.ca (8.11.0/8.11.0) id eAA35lT16490; Thu, 9 Nov 2000 22:05:47 -0500 From: Jean-Marc Pigeon Message-Id: <200011100305.eAA35lT16490@new-york.safe.ca> Subject: Vacuum and index To: pgsql-admin@postgresql.org Date: Thu, 9 Nov 2000 22:05:47 -0500 (EST) Cc: jmp@new-york.safe.ca (Jean-Marc Pigeon) X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200011/65 X-Sequence-Number: 74 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.Pigeon@safe.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"> ==========================================================================