Re: Deadlock detected

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Brian J(dot) France" <postgresql(at)firehawksystems(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Deadlock detected
Date: 2001-04-13 16:40:15
Message-ID: 4501.987180015@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Brian J. France" <postgresql(at)firehawksystems(dot)com> writes:
> I am getting a few of these errors in my web logs and didn't know what I could do to stop it.

> NOTICE: Deadlock detected -- See the lock(l) manual page for a possible cause.

> Error in query "UPDATE <table> SET <field> = <value> WHERE <field2> = <value2>" : ERROR: WaitOnLock: error on wakeup - Aborting this transaction

> Is this due to the hash index on field2 or due to the has index in general?

Don't use hash indexes for concurrent applications. I don't really know
of any reason for preferring a hash index over a btree index in any case.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-04-13 16:50:12 Re: Using pl/pgsql or sql for in/out functions for types
Previous Message Justin S. 2001-04-13 16:39:58 Shared memory failure?