Fix race introduced by 6d46f4783efe457f74816a75173eb23ed8930020.
authorRobert Haas <rhaas@postgresql.org>
Mon, 5 Dec 2016 16:43:37 +0000 (11:43 -0500)
committerRobert Haas <rhaas@postgresql.org>
Mon, 5 Dec 2016 16:43:37 +0000 (11:43 -0500)
commit2f4193c3509a822c55cc0eae77e7788806d9b022
tree16474cfff7f512987de3e3cf6745b443d08595bf
parent0e50af245397c9bf3e7b02c0958be599de838fac
Fix race introduced by 6d46f4783efe457f74816a75173eb23ed8930020.

It's possible for the metapage contents to change after we release
the lock, so we must read them before releasing the lock.

Amit Kapila.  Submitted in response to a trouble report from
Andreas Seltenreich, though it is not certain this fixes the
problem.
src/backend/access/hash/hashpage.c