Fix longstanding bug found by Atsushi Ogawa: _bt_check_unique would mark

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

Commit: e952ae1268c209a7685eb89b3269a18620509162
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-10-12T17:18:03Z
Releases: 8.1.0
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