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

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix parallel index scan hang with deleted or half-dead pages.
Date: 2017-12-13 21:21:13
Message-ID: E1ePESn-0005PV-S9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/192ffe1cbd4a2beaf6c6975267c97d5affa0f26b

Modified Files
--------------
src/backend/access/nbtree/nbtsearch.c | 10 ++++++++++
1 file changed, 10 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-12-13 21:32:24 pgsql: Add defenses against pre-crash files to BufFileOpenShared().
Previous Message Robert Haas 2017-12-13 21:00:47 pgsql: Revert "Fix accumulation of parallel worker instrumentation."