]> 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:07:05 +0000 (11:07 -0700)
commitcab72f0fd08cceb975194d2acd2f6eed917e8fb8
treecc7315084a8d8498d274013b89eb0bb8904610fc
parent6359e4b0fe7138f7b89e07858e1563c46d36459a
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