Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fc7dded

Browse files
Clarify nbtree array preprocessing comment.
Oversight in commit 5bf748b.
1 parent 6d5444c commit fc7dded

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/access/nbtree/nbtutils.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2901,8 +2901,9 @@ _bt_preprocess_keys(IndexScanDesc scan)
29012901
* ...unless we have to keep the old key because it's
29022902
* an array that rendered the new key redundant. We
29032903
* need to make sure that we don't throw away an array
2904-
* scan key. _bt_compare_scankey_args expects us to
2905-
* always keep arrays (and discard non-arrays).
2904+
* scan key. _bt_preprocess_array_keys_final expects
2905+
* us to keep all of the arrays that weren't already
2906+
* eliminated by _bt_preprocess_array_keys earlier on.
29062907
*/
29072908
Assert(!(inkey->sk_flags & SK_SEARCHARRAY));
29082909
}

0 commit comments

Comments
 (0)