Re: some question about deadlock - Mailing list pgsql-hackers

From Tom Lane
Subject Re: some question about deadlock
Date
Msg-id 14853.1148919395@sss.pgh.pa.us
Whole thread Raw
In response to Re: some question about deadlock  ("ipig" <ipig@ercist.iscas.ac.cn>)
List pgsql-hackers
"ipig" <ipig@ercist.iscas.ac.cn> writes:
>    In your example, it seems that process B is the first such waiter( the request of B conflicts AccessShareLock).

No.  Better go study
http://developer.postgresql.org/docs/postgres/explicit-locking.html#LOCKING-TABLES

After looking at the example again, consider the further assumption
that C already has AccessShareLock (which is certainly a valid
configuration).  Then A *must* queue between C and D; there is no
other valid order to grant the requests in.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "ipig"
Date:
Subject: Re: some question about deadlock
Next
From: "Mark Cave-Ayland"
Date:
Subject: Proposal for debugging of server-side stored procedures