aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spginsert.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-10-07 23:57:40 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-10-08 00:03:24 +0300
commitcc736ed91f4c04773fcb8f4683542ce105997e5b (patch)
treea0a50de55dd54c7f11ec4bf830bf358068514086 /src/backend/access/spgist/spginsert.c
parent4750eae3504e9d74eec883434cf275657d57bd25 (diff)
downloadpostgresql-cc736ed91f4c04773fcb8f4683542ce105997e5b.tar.gz
postgresql-cc736ed91f4c04773fcb8f4683542ce105997e5b.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/spgist/spginsert.c')
0 files changed, 0 insertions, 0 deletions