Re: FWD: bug report: index is not a btree - Mailing list pgsql-bugs

From Michael Fuhr
Subject Re: FWD: bug report: index is not a btree
Date
Msg-id 20050803130316.GA27156@winnie.fuhr.org
Whole thread Raw
In response to FWD: bug report: index is not a btree  ("Greg Sabino Mullane" <greg@turnstep.com>)
Responses Re: FWD: bug report: index is not a btree
List 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/

pgsql-bugs by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: FWD: bug report: index is not a btree
Next
From: Tom Lane
Date:
Subject: Re: FWD: bug report: index is not a btree