Re: possible deadlock: different lock ordering for heap pages

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: "Nishant, Fnu" <nishantf@amazon.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-01-31T19:00:44Z
Lists: pgsql-hackers
On Sun, Jan 20, 2019 at 9:55 AM Amit Kapila <amit.kapila16@gmail.com> wrote:
> Robert, can you please once see if we are missing anything here
> because to me the report and fix look genuine.

I think so, too.  I guess the probability of a deadlock here must be *very* low.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Commits

  1. Avoid possible deadlock while locking multiple heap pages.

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