Re: foreign key locks

Поиск
Список
Период
Сортировка
Искать
От
Andres Freund
Тема
Re: foreign key locks
Дата
Msg-id
20121119121225.GB28067@awork2.anarazel.de
Ответ на
Re: foreign key locks (Alvaro Herrera)
Список
Дерево обсуждения
Re: foreign key locks "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: foreign key locks Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks Alvaro Herrera <alvherre@commandprompt.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Noah Misch <noah@leadboat.com>
Re: foreign key locks Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Noah Misch <noah@leadboat.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Noah Misch <noah@leadboat.com>
Re: foreign key locks Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Noah Misch <noah@leadboat.com>
Re: foreign key locks Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Noah Misch <noah@leadboat.com>
Re: foreign key locks Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks Alvaro Herrera <alvherre@2ndquadrant.com>
Re: foreign key locks - EvalPlanQual interactions Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks Andres Freund <andres@2ndquadrant.com>
Re: foreign key locks Simon Riggs <simon@2ndQuadrant.com>
Re: foreign key locks Robert Haas <robertmhaas@gmail.com>
On 2012-11-14 13:27:26 -0300, Alvaro Herrera wrote:
> Alvaro Herrera wrote:
>
> > > * In heap_lock_tuple's  XMAX_IS_MULTI case
> > >
> > > [snip]
> > >
> > > why is it membermode > mode and not membermode >= mode?
> >
> > Uh, that's a bug.  Fixed.  As noticed in the comment above that snippet,
> > there was a deadlock possible here.  Maybe I should add a test to ensure
> > this doesn't happen.
>
> Done:
> https://github.com/alvherre/postgres/commit/df2847e38198e99f57e52490e1e9391ebb70d770
>
> (I don't think this is worth a v24 submission).

One more observation:       /*        * Get and lock the updated version of the row; if fail, return       NULL.        */
-       copyTuple = EvalPlanQualFetch(estate, relation, LockTupleExclusive,
+       copyTuple = EvalPlanQualFetch(estate, relation, LockTupleNoKeyExclusive,

That doesn't seem to be correct to me. Why is it ok to acquire a
potentially too low locklevel here?

Greetings,

Andres Freund

--Andres Freund	                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-hackers по дате отправления
От: Andres Freund
Дата:
От: Pavel Stehule
Дата:
FAQ