Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    7ccaf13a
    Instead of using a numberOfRequiredKeys count to distinguish required · 7ccaf13a
    Tom Lane authored
    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.
    7ccaf13a
    History
    Instead of using a numberOfRequiredKeys count to distinguish required
    Tom Lane authored
    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.