diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-10-07 23:57:40 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-10-08 00:18:43 +0300 |
commit | 81fbbfe3352d3965ee3d8eaafe164b2335c43f72 (patch) | |
tree | b670c03cd24be35db2bb080807b84f95f79c39c6 /src/backend/access/transam/xlog.c | |
parent | 0b109c822b599d64ff042e5535d9268b27e70969 (diff) | |
download | postgresql-81fbbfe3352d3965ee3d8eaafe164b2335c43f72.tar.gz postgresql-81fbbfe3352d3965ee3d8eaafe164b2335c43f72.zip |
Fix bugs in SSI tuple locking.
1. In heap_hot_search_buffer(), the PredicateLockTuple() call is passed
wrong offset number. heapTuple->t_self is set to the tid of the first
tuple in the chain that's visited, not the one actually being read.
2. CheckForSerializableConflictIn() uses the tuple's t_ctid field
instead of t_self to check for exiting predicate locks on the tuple. If
the tuple was updated, but the updater rolled back, t_ctid points to the
aborted dead tuple.
Reported by Hannu Krosing. Backpatch to 9.1.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions