Re: some question about deadlock

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "ipig" <ipig(at)ercist(dot)iscas(dot)ac(dot)cn>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: some question about deadlock
Date: 2006-05-29 16:16:35
Message-ID: 14853.1148919395@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"ipig" <ipig(at)ercist(dot)iscas(dot)ac(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Cave-Ayland 2006-05-29 16:25:55 Proposal for debugging of server-side stored procedures
Previous Message ipig 2006-05-29 16:10:34 Re: some question about deadlock