Re: [Glue] Deadlock bug

Поиск
Список
Период
Сортировка
Искать
От
Josh Berkus
Тема
Re: [Glue] Deadlock bug
Дата
Msg-id
4C6EC962.4060908@agliodbs.com
Ответ на
Re: Deadlock bug (Tom Lane)
Список
Дерево обсуждения
Deadlock bug Joel Jacobson <joel@gluefinance.com>
Re: Deadlock bug Tom Lane <tgl@sss.pgh.pa.us>
Re: Deadlock bug "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Deadlock bug Tom Lane <tgl@sss.pgh.pa.us>
Re: Deadlock bug Joel Jacobson <joel@gluefinance.com>
Re: Deadlock bug Tom Lane <tgl@sss.pgh.pa.us>
Re: Deadlock bug Josh Berkus <josh@agliodbs.com>
Re: Deadlock bug Tom Lane <tgl@sss.pgh.pa.us>
Re: Deadlock bug Simon Riggs <simon@2ndQuadrant.com>
Re: Deadlock bug Markus Wanner <markus@bluegap.ch>
Re: Deadlock bug Simon Riggs <simon@2ndQuadrant.com>
Re: Deadlock bug Nicolas Barbier <nicolas.barbier@gmail.com>
Re: Deadlock bug Simon Riggs <simon@2ndQuadrant.com>
Re: Deadlock bug Nicolas Barbier <nicolas.barbier@gmail.com>
Re: Deadlock bug Tom Lane <tgl@sss.pgh.pa.us>
Re: Deadlock bug Markus Wanner <markus@bluegap.ch>
Re: Deadlock bug Josh Berkus <josh@agliodbs.com>
Re: Deadlock bug Tom Lane <tgl@sss.pgh.pa.us>
Re: Deadlock bug Greg Stark <gsstark@mit.edu>
Re: Deadlock bug Tom Lane <tgl@sss.pgh.pa.us>
Re: Deadlock bug Simon Riggs <simon@2ndQuadrant.com>
Re: Deadlock bug Josh Berkus <josh@agliodbs.com>
Re: Deadlock bug Markus Wanner <markus@bluegap.ch>
Re: Deadlock bug Greg Stark <gsstark@mit.edu>
Re: Deadlock bug Robert Haas <robertmhaas@gmail.com>
Re: Deadlock bug Joel Jacobson <joel@gluefinance.com>
Re: Deadlock bug Tom Lane <tgl@sss.pgh.pa.us>
Re: [Glue] Deadlock bug Josh Berkus <josh@agliodbs.com>
Re: Deadlock bug Joel Jacobson <joel@gluefinance.com>
Re: Deadlock bug Tom Lane <tgl@sss.pgh.pa.us>
Re: Deadlock bug Joel Jacobson <joel@gluefinance.com>
Re: [Glue] Deadlock bug Josh Berkus <josh@agliodbs.com>
Re: [Glue] Deadlock bug "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: [Glue] Deadlock bug "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: [Glue] Deadlock bug Josh Berkus <josh@agliodbs.com>
Re: [Glue] Deadlock bug Joel Jacobson <joel@gluefinance.com>
Re: [Glue] Deadlock bug Josh Berkus <josh@agliodbs.com>
Re: [Glue] Deadlock bug Greg Stark <gsstark@mit.edu>
Re: [Glue] Deadlock bug Joel Jacobson <joel@gluefinance.com>
Re: [Glue] Deadlock bug Greg Stark <gsstark@mit.edu>
On 8/20/10 7:18 AM, Tom Lane wrote:
> It does go through without any deadlock, *if* there is no foreign key
> involved.  You didn't tell us exactly what the FK relationship is, but
> I suspect the reason for the deadlock is that one process is trying to
> update a row that references some row already updated by the other.
> That will require a row-level share lock on the referenced row, so you
> can get a deadlock.

That's correct. This is the generic example I was talking about earlier
on -hackers.  I'm not certain it's a bug per spec; I wanted to talk
through with Kevin what we *should* be doing in this situation.

This is one example of a set of user-hostile FK-related deadlock
behavior we have.  I'm just not certain it's logically possible to
improve it.

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.                                    http://www.pgexperts.com

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Tom Lane
Дата:
Сообщение: Re: git: uh-oh
FAQ