Fix longstanding bug found by Atsushi Ogawa: _bt_check_unique would mark

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

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