Clean up and document btree code for ordering keys. Neat stuff,
Tom Lane <tgl@sss.pgh.pa.us>
Clean up and document btree code for ordering keys. Neat stuff, actually, but who could understand it with no comments? Fix bug while at it: _bt_orderkeys would try to invoke comparisons on NULL inputs, given the right sort of redundant quals.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/nbtree/nbtsearch.c | modified | +50 −53 |
| src/backend/access/nbtree/nbtutils.c | modified | +220 −125 |
| src/include/access/nbtree.h | modified | +14 −13 |