Re: FWD: bug report: index is not a btree

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Greg Sabino Mullane <greg(at)turnstep(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: FWD: bug report: index is not a btree
Date: 2005-08-03 13:03:16
Message-ID: 20050803130316.GA27156@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Wed, Aug 03, 2005 at 09:46:23AM -0000, Greg Sabino Mullane wrote:
>
> 2 $ ./postmaster -D data &
> $ ./psql TEST
> TEST=#create table a(col1 int primary key);
>
> 3 $ kill -9 <postmaster pid>
>
> 4 $ ./postmaster -D data &
> $ ./psql TEST
> TEST=#insert into a values(1);
>
> ERROR: Index a_pkey is not a btree
>
> the file of a_pkey has size 8k, and is all zero.

I can duplicate this in 7.3.10, but only if the postmaster does a
redo when it restarts. If I do a checkpoint before killing the
postmaster then the insert succeeds.

I couldn't duplicate this behavior in 7.4.8, 8.0.3, or HEAD. The
7.4 Release Notes have an item about making B-tree indexes fully
WAL-safe, so I wonder if that fixes the problem.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Mario Reiley 2005-08-03 13:05:16 BUG #1804: Installations Problems
Previous Message Adam Radłowski 2005-08-03 11:01:53 a bug in libpq, PSQL 8.0.3