Re: BUG #5689: UPDATE locks index before table resulting in deadlock - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5689: UPDATE locks index before table resulting in deadlock
Date
Msg-id 5499.1286029400@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5689: UPDATE locks index before table resulting in deadlock  ("Peter Ajamian" <peter@pajamian.dhs.org>)
List pgsql-bugs
"Peter Ajamian" <peter@pajamian.dhs.org> writes:
> From what I can understand, the UPDATE is trying to lock the index before
> locking the table.

That is not the case, as study of the source code will prove to you.

I think what probably happened here is that the UPDATE was part of
a transaction that already had some relevant locks, but you haven't
provided enough information to diagnose it beyond that.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Peter Ajamian"
Date:
Subject: BUG #5689: UPDATE locks index before table resulting in deadlock
Next
From: Tom Lane
Date:
Subject: Re: src/tools/fsync/test_fsync.c does not compile