]> granicus.if.org Git - postgresql/commit
Stop btree indexscans upon reaching nulls in either direction.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 31 Oct 2011 20:40:22 +0000 (16:40 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 31 Oct 2011 20:40:22 +0000 (16:40 -0400)
commitd23165bbc306005f687756a20d9af807d665a1f2
treed68c888c55252accb096592e7b6af444b06caf01
parent04ec05eb06f3f0ba3b7eec37a1f001af71f770b8
Stop btree indexscans upon reaching nulls in either direction.

The existing scan-direction-sensitive tests were overly complex, and
failed to stop the scan in cases where it's perfectly legitimate to do so.
Per bug #6278 from Maksym Boguk.

Back-patch to 8.3, which is as far back as the patch applies easily.
Doesn't seem worth sweating over a relatively minor performance issue in
8.2 at this late date.  (But note that this was a performance regression
from 8.1 and before, so 8.2 is being left as an outlier.)
src/backend/access/nbtree/nbtutils.c