summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2007-01-27 20:53:52 +0000
committerTom Lane2007-01-27 20:53:52 +0000
commit372c651312f60a0b49dd8202cae45f725d81dac0 (patch)
tree6bc9cc6ff53c6255a57209515b0437687929e252 /doc/src
parent4461eb17c61e82ddeb56741cd82c6a369f6cd96f (diff)
Correct an old logic error in btree page splitting: when considering a split
exactly at the point where we need to insert a new item, the calculation used the wrong size for the "high key" of the new left page. This could lead to choosing an unworkable split, resulting in "PANIC: failed to add item to the left sibling" (or "right sibling") failure. Although this bug has been there a long time, it's very difficult to trigger a failure before 8.2, since there was generally a lot of free space on both sides of a chosen split. In 8.2, where the user-selected fill factor determines how much free space the code tries to leave, an unworkable split is much more likely. Report by Joe Conway, diagnosis and fix by Heikki Linnakangas.
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions