Re: foreign key locks - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: foreign key locks
Date
Msg-id 20121114162726.GE5161@alvh.no-ip.org
Whole thread Raw
In response to Re: foreign key locks  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses 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  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
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).

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: WIP patch: add (PRE|POST)PROCESSOR options to COPY
Next
From: Nicholas White
Date:
Subject: Re: S_ISLNK