Instead of using a numberOfRequiredKeys count to distinguish required

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

Commit: 7ccaf13a06b8e1f70b26ab049fdb4f8c8dece3f8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-01-23T22:31:41Z
Releases: 8.2.0
Instead of using a numberOfRequiredKeys count to distinguish required
and non-required keys in a btree index scan, mark the required scankeys
with private flag bits SK_BT_REQFWD and/or SK_BT_REQBKWD.  This seems
at least marginally clearer to me, and it eliminates a wired-into-the-
data-structure assumption that required keys are consecutive.  Even though
that assumption will remain true for the foreseeable future, having it
in there makes the code seem more complex than necessary.

Files