Re: Deadlock bug - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Deadlock bug
Date
Msg-id 25088.1282331497@sss.pgh.pa.us
Whole thread Raw
In response to Re: Deadlock bug  (Joel Jacobson <joel@gluefinance.com>)
Responses Re: Deadlock bug
List pgsql-hackers
Joel Jacobson <joel@gluefinance.com> writes:
> I fully agree it must obtain a sharelock on the FK, but I cannot understand
> why it is granted it the first time, but not the second time?

It *isn't* granted it the first time, because it doesn't try to acquire
it the first time.  That FK check gets optimized away, while the second
one doesn't.  Please reread what I said before.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: Version Numbering
Next
From: Tom Lane
Date:
Subject: Re: Version Numbering