aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/makefuncs.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-11-08 22:21:42 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-11-08 22:21:42 +0200
commitac4ab97ec05ea900db0f14d428cae2e79832e02d (patch)
treed0ef717ecbc3722ba64bd96b0304f90005a3baea /src/backend/nodes/makefuncs.c
parent636b868f17a6d38c0f9e099ea8f389a555403f9e (diff)
downloadpostgresql-ac4ab97ec05ea900db0f14d428cae2e79832e02d.tar.gz
postgresql-ac4ab97ec05ea900db0f14d428cae2e79832e02d.zip
Fix race condition in GIN posting tree page deletion.
If a page is deleted, and reused for something else, just as a search is following a rightlink to it from its left sibling, the search would continue scanning whatever the new contents of the page are. That could lead to incorrect query results, or even something more curious if the page is reused for a different kind of a page. To fix, modify the search algorithm to lock the next page before releasing the previous one, and refrain from deleting pages from the leftmost branch of the tree. Add a new Concurrency section to the README, explaining why this works. There is a lot more one could say about concurrency in GIN, but that's for another patch. Backpatch to all supported versions.
Diffstat (limited to 'src/backend/nodes/makefuncs.c')
0 files changed, 0 insertions, 0 deletions