aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeHash.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-01-05 20:08:34 +0900
committerMichael Paquier <michael@paquier.xyz>2024-01-05 20:08:34 +0900
commit9cd0d77dfcdf847cc42e0401d406c501b3baccbb (patch)
tree5d7ef14f3396c2170330fa23339fc87a853050ec /src/backend/executor/nodeHash.c
parent9391f71523b6e57f1194d9f6543bc7948c16411b (diff)
downloadpostgresql-9cd0d77dfcdf847cc42e0401d406c501b3baccbb.tar.gz
postgresql-9cd0d77dfcdf847cc42e0401d406c501b3baccbb.zip
Fix corruption of local buffer state during extend of temp relation
A typo has been introduced by 31966b151e6a when updating the state of a local buffer when a temporary relation is extended, for the case of a block included in the relation range extended, when it is already found in the hash table holding the local buffers. In this case, BM_VALID should be cleared, but the buffer state was changed so as BM_VALID remained while clearing the other flags. As reported on the thread, it was possible to corrupt the state of the local buffers on ENOSPC, but the states would be corrupted on any kind of ERROR during the relation extend (like partial writes or some other errno). Reported-by: Alexander Lakhin Author: Tender Wang Reviewed-by: Richard Guo, Alexander Lakhin, Michael Paquier Discussion: https://postgr.es/m/18259-6e256429825dd435@postgresql.org Backpatch-through: 16
Diffstat (limited to 'src/backend/executor/nodeHash.c')
0 files changed, 0 insertions, 0 deletions