]> 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:04:36 +0000 (11:04 -0700)
commitdd6070bc81733c3174f2e257d43908f98b0255fb
treeac0aa4bfda9d1335befc1a871fd68bd58699b4d0
parentf256236fb1b00e9d05f889a53e93feeecbd50991
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