Re: Deadlock bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deadlock bug
Дата
Msg-id 25088.1282331497@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Deadlock bug  (Joel Jacobson <joel@gluefinance.com>)
Ответы Re: Deadlock bug  (Joel Jacobson <joel@gluefinance.com>)
Список 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 по дате отправления:

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Version Numbering
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Version Numbering