git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6d5444c)
Clarify nbtree array preprocessing comment.
Fri, 1 Nov 2024 15:43:24 +0000 (11:43 -0400)
Fri, 1 Nov 2024 15:43:24 +0000 (11:43 -0400)
Oversight in commit 5bf748b8.


diff --git a/src/backend/access/nbtree/nbtutils.c b/src/backend/access/nbtree/nbtutils.c
index 14253ead8bd54a6201ced2dbd5c7b75aedc2db79..1b75066fb510b147f1267c5fe590f4798043a61f 100644 (file)
--- a/src/backend/access/nbtree/nbtutils.c
+++ b/src/backend/access/nbtree/nbtutils.c
@@ -2901,8 +2901,9 @@ _bt_preprocess_keys(IndexScanDesc scan)
* ...unless we have to keep the old key because it's
* an array that rendered the new key redundant. We
* need to make sure that we don't throw away an array
- * scan key. _bt_compare_scankey_args expects us to
- * always keep arrays (and discard non-arrays).
+ * scan key. _bt_preprocess_array_keys_final expects
+ * 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));
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /