]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix race condition where heap_delete() fails to pin VM page.
authorJeff Davis <jdavis@postgresql.org>
Thu, 22 Sep 2022 17:58:49 +0000 (10:58 -0700)
committerJeff Davis <jdavis@postgresql.org>
Thu, 22 Sep 2022 18:06:42 +0000 (11:06 -0700)
commit410c422b75ac53a4da438c1a4b0e1fa421db0d59
treebee5f8f8df6fe46094a627bd53b1b7477095cfd2
parent5f9dda4c0664faf36fdf931f00e2206dad2d3066
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
src/backend/access/heap/heapam.c