Re: possible deadlock: different lock ordering for heap pages

Nishant, Fnu <nishantf@amazon.com>

From: "Nishant, Fnu" <nishantf@amazon.com>
To: Amit Kapila <amit.kapila16@gmail.com>, Robert Haas <robertmhaas@gmail.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-01-21T17:09:38Z
Lists: pgsql-hackers

Attachments

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.

Will wait for Robert comments.

Thanks
-Nishant

    

Commits

  1. Avoid possible deadlock while locking multiple heap pages.

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