USING HASH considered harmful? - Mailing list pgsql-general

From Stephen Robert Norris
Subject USING HASH considered harmful?
Date
Msg-id 20010817092313.B28987@ws12.commsecure.com.au
Whole thread Raw
Responses Re: USING HASH considered harmful?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: USING HASH considered harmful?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
We've just discovered a rather nasty feature of hashes, namely that
simultaneous reads & writes to a single row will deadlock if there
is a hash index on the table.

I guess this is because PG really has to lock the hash table entry in
both cases. It does, however, make HASH indices completely useless for
any table that you might want to update.

Is this a known feature?

    Stephen

Attachment

pgsql-general by date:

Previous
From: Andrew Gould
Date:
Subject: Re: Killing inactive connections
Next
From: newsreader@mediaone.net
Date:
Subject: Re: why sequential scan