Modify keys_are_unique optimization to release buffer pins before it

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

Commit: fddc2d94cea0b60a704020715e5e6cc15548a412
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-03-24T21:42:33Z
Releases: 7.4.1
Modify keys_are_unique optimization to release buffer pins before it
returns NULL.  This avoids out-of-buffers failures during many-way
indexscans, as in Shraibman's complaint of 21-Mar.

Files

PathChange+/−
src/backend/access/index/genam.c modified +2 −2
src/backend/access/index/indexam.c modified +54 −21