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>
Cc: Robert Haas <robertmhaas@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-02-01T05:30:18Z
Lists: pgsql-hackers

On 1/31/19, 9:21 PM, "Amit Kapila" <amit.kapila16@gmail.com> wrote:


    > BTW, do you have a reproducible test case for this fix?  How did you
    catch this, browsing code?
    
Yes, I observed it while reading code. I do not have a repro.

    > How do we pronounce your name, is Nishant Fnu okay?  I would like to
    mention you as the author of the patch, so need to write your name.
Yes, Nishant Fnu is okay.

Thanks
Nishant 

Commits

  1. Avoid possible deadlock while locking multiple heap pages.

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