Fix parallel index scan hang with deleted or half-dead pages.

Robert Haas <rhaas@postgresql.org>

Commit: 884a60840cd684dd7925e7a4f9bf10288c37694d
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-12-13T21:15:44Z
Releases: 11.0
Fix parallel index scan hang with deleted or half-dead pages.

The previous coding forgot to release the scan before seizing
it again, leading to a lockup.

Report by Patrick Hemmer.  Diagnosis by Thomas Munro.  Patch by
Amit Kapila.

Discussion: http://postgr.es/m/CAEepm=2xZUcOGP9V0O_G0=2P2wwXwPrkF=upWTCJSisUxMnuSg@mail.gmail.com

Files

PathChange+/−
src/backend/access/nbtree/nbtsearch.c modified +10 −0

Discussion