Re: possible deadlock: different lock ordering for heap pages

Amit Kapila <amit.kapila16@gmail.com>

From: Amit Kapila <amit.kapila16@gmail.com>
To: "Nishant, Fnu" <nishantf@amazon.com>
Cc: Robert Haas <robertmhaas@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-02-04T02:29:08Z
Lists: pgsql-hackers
On Fri, Feb 1, 2019 at 10:50 AM Amit Kapila <amit.kapila16@gmail.com> wrote:
>
> On Mon, Jan 21, 2019 at 10:39 PM Nishant, Fnu <nishantf@amazon.com> wrote:
> >
> > Thanks Amit for your review.
> >
> > On 1/20/19, 6:55 AM, "Amit Kapila" <amit.kapila16@gmail.com> wrote:
> >     > I think you need to change below code as well....
> >        Assert(buffer2 == InvalidBuffer || buffer1 <= buffer2);
> >
> > Done. Updated the patch.
> >
>
> Attached is an updated patch.  I have edited comments and commit
> message in the patch.  I would like to backpatch this till 9.4 unless
> anyone thinks otherwise.
>

Pushed this patch and backpatched till 9.4.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com


Commits

  1. Avoid possible deadlock while locking multiple heap pages.

  2. Try again to make the visibility map crash safe.