pgsql: Fix race condition where heap_delete() fails to pin VM page.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix race condition where heap_delete() fails to pin VM page.
Date: 2022-09-22 18:44:49
Message-ID: E1obRBp-001XZq-AA@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/163b0993a162ebae00fe5de8f593a5da28821a1b

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

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2022-09-22 18:45:05 pgsql: Fix race condition where heap_delete() fails to pin VM page.
Previous Message Alvaro Herrera 2022-09-22 17:09:52 pgsql: Remove ALL keyword from TABLES IN SCHEMA for publication