]> granicus.if.org Git - postgresql/commit
Dept of second thoughts: my first cut at supporting "x IS NOT NULL" btree
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Jan 2010 05:39:08 +0000 (05:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Jan 2010 05:39:08 +0000 (05:39 +0000)
commit5b76bb180f4091823fa33f474601ada34eda2c39
treeb4ecbf3ce44cf85150dc726fbb8ed2d78fd4f6b5
parentc3705d8cc5bb7197295c1965c80ccf247716318d
Dept of second thoughts: my first cut at supporting "x IS NOT NULL" btree
indexscans would do the wrong thing if index_rescan() was called with a
NULL instead of a new set of scankeys and the index was DESC order,
because sk_strategy would not get flipped a second time.  I think
that those provisions for a NULL argument are dead code now as far as the
core backend goes, but possibly somebody somewhere is still using it.
In any case, this refactoring seems clearer, and it's definitely shorter.
src/backend/access/nbtree/nbtutils.c