Clarify nbtree array preprocessing comment.

Oversight in commit 5bf748b8.
This commit is contained in:
Peter Geoghegan 2024-11-01 11:43:24 -04:00
parent 6d5444c9ed
commit fc7ddededb

View File

@ -2901,8 +2901,9 @@ _bt_preprocess_keys(IndexScanDesc scan)
* ...unless we have to keep the old key because it's * ...unless we have to keep the old key because it's
* an array that rendered the new key redundant. We * an array that rendered the new key redundant. We
* need to make sure that we don't throw away an array * need to make sure that we don't throw away an array
* scan key. _bt_compare_scankey_args expects us to * scan key. _bt_preprocess_array_keys_final expects
* always keep arrays (and discard non-arrays). * us to keep all of the arrays that weren't already
* eliminated by _bt_preprocess_array_keys earlier on.
*/ */
Assert(!(inkey->sk_flags & SK_SEARCHARRAY)); Assert(!(inkey->sk_flags & SK_SEARCHARRAY));
} }