agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Paul M. Aoki <aoki@cs.berkeley.edu>
To: V.Grabner <zen@bononunu.gams.co.at>
Cc: avi@baan.nl
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: hash indices
Date: Tue, 05 Mar 96 15:46:19 -0800
Message-ID: <199603052346.PAA01847@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <199603052106.WAA09702@zen.gams.co.at>

"V.Grabner" <zen@bononunu.gams.co.at> writes:
> We had the same problem when using hash indices. Hash indices
> alsways crashed the database when creating an index or inserting 
> > 50 rows into the table.
> 
> Do not use them, use btree indices instead.
> 
> I tried to trace the problem but I did not find it. I found
> out it always happend during the split of an hash page but I
> never found out why. Without documentation I was lost.

the hash index split code is really, really broken in 4.2.  it doesn't
surface until you hit some fill factor (i.e., get a bunch of page
collisions), but after that the hash index is corrupt.  i think the
fixes (bug fixes, taking out the bogus "high concurrency" locking,
rewriting the split code) made it into some release of pg95 or
another..
--
  Paul M. Aoki          |  University of California at Berkeley
  aoki@CS.Berkeley.EDU  |  Dept. of EECS, Computer Science Division (#1776) 
                        |  Berkeley, CA 94720-1776

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
              URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: aoki@cs.berkeley.edu, zen@bononunu.gams.co.at, avi@baan.nl
  Subject: Re: hash indices
  In-Reply-To: <199603052346.PAA01847@faerie.CS.Berkeley.EDU>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox