Fix longstanding bug found by Atsushi Ogawa: _bt_check_unique would mark

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 00de66a3b4bd6ab9c42b2c9491519184d3613e54
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-10-12T17:18:15Z
Releases: 8.0.5
Fix longstanding bug found by Atsushi Ogawa: _bt_check_unique would mark
the wrong buffer dirty when trying to kill a dead index entry that's on
a page after the one it started on.  No risk of data corruption, just
inefficiency, but still a bug.

Files

PathChange+/−
src/backend/access/nbtree/nbtinsert.c modified +5 −2