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:14:15 +0300 |
commit | 42c63cafb2af32795afa7dd5d3690186af313785 (patch) | |
tree | dddcd8622cceca1b2ea4ff5377987b57fd7dce60 /src/backend/executor/execScan.c | |
parent | 1c4dfd19a6ebb3c2a0471f0a57b9f13d0ccd9d02 (diff) | |
download | postgresql-42c63cafb2af32795afa7dd5d3690186af313785.tar.gz postgresql-42c63cafb2af32795afa7dd5d3690186af313785.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/executor/execScan.c')
0 files changed, 0 insertions, 0 deletions