pgsql: Fix race condition where heap_delete() fails to pin VM page. - Mailing list pgsql-committers

From Jeff Davis
Subject pgsql: Fix race condition where heap_delete() fails to pin VM page.
Date
Msg-id E1obRCO-001Xbv-QL@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix race condition where heap_delete() fails to pin VM page.

Similar to 5f12bc94dc, the code must re-check PageIsAllVisible() after
buffer lock is re-acquired. Backpatching to the same version, 12.

Discussion: https://postgr.es/m/CAEP4nAw9jYQDKd_5Y+-s2E4YiUJq1vqiikFjYGpLShtp-K3gag@mail.gmail.com
Reported-by: Robins Tharakan
Reviewed-by: Robins Tharakan
Backpatch-through: 12

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/410c422b75ac53a4da438c1a4b0e1fa421db0d59

Modified Files
--------------
src/backend/access/heap/heapam.c | 30 +++++++++++++++++++-----------
1 file changed, 19 insertions(+), 11 deletions(-)


pgsql-committers by date:

Previous
From: Jeff Davis
Date:
Subject: pgsql: Fix race condition where heap_delete() fails to pin VM page.
Next
From: Jeff Davis
Date:
Subject: pgsql: Fix race condition where heap_delete() fails to pin VM page.