Fix nbtree "deduce NOT NULL" scan key comment.
authorPeter Geoghegan <[email protected]>
Tue, 16 Apr 2024 16:04:20 +0000 (12:04 -0400)
committerPeter Geoghegan <[email protected]>
Tue, 16 Apr 2024 16:04:20 +0000 (12:04 -0400)
Oversight in commit c9c0589fda.

src/backend/access/nbtree/nbtsearch.c

index d241e8ea1dcce5b6c5ee1a5a932ebc4b19c6a68c..57bcfc7e4c6421cd7ccb1e310e1a2ae43c850e35 100644 (file)
@@ -1051,7 +1051,7 @@ _bt_first(IndexScanDesc scan, ScanDirection dir)
                     ScanDirectionIsForward(dir) :
                     ScanDirectionIsBackward(dir)))
                {
-                   /* Yes, so build the key in notnullkeys[keysCount] */
+                   /* Yes, so build the key in notnullkeys[keysz] */
                    chosen = &notnullkeys[keysz];
                    ScanKeyEntryInitialize(chosen,
                                           (SK_SEARCHNOTNULL | SK_ISNULL |