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-k3...@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(-)

Reply via email to