aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/array_userfuncs.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2013-12-05 12:21:55 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2013-12-05 12:21:55 -0300
commit07aeb1fec571920839822c11851d38ef48952d6c (patch)
tree69d37e25fb835f9a1270c998951effdfbb4860db /src/backend/utils/adt/array_userfuncs.c
parent86ef4796f5120c55d1a48cfab52e51df8ed271b5 (diff)
downloadpostgresql-07aeb1fec571920839822c11851d38ef48952d6c.tar.gz
postgresql-07aeb1fec571920839822c11851d38ef48952d6c.zip
Avoid resetting Xmax when it's a multi with an aborted update
HeapTupleSatisfiesUpdate can very easily "forget" tuple locks while checking the contents of a multixact and finding it contains an aborted update, by setting the HEAP_XMAX_INVALID bit. This would lead to concurrent transactions not noticing any previous locks held by transactions that might still be running, and thus being able to acquire subsequent locks they wouldn't be normally able to acquire. This bug was introduced in commit 1ce150b7bb; backpatch this fix to 9.3, like that commit. This change reverts the change to the delete-abort-savept isolation test in 1ce150b7bb, because that behavior change was caused by this bug. Noticed by Andres Freund while investigating a different issue reported by Noah Misch.
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions