Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4938737

Browse files
Update obsolete row compare preprocessing comments.
Restore nbtree preprocessing comments describing how we mark nbtree rowcompare members required to how they were prior to 2016 bugfix commita298a1e.Oversight in commitbd3f59f, which made nbtree preprocessing revert tothe original 2006 rules, but neglected to revert these comments.Backpatch-through: 18
1 parente16c9cd commit4938737

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/backend/access/nbtree/nbtpreprocesskeys.c‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,12 @@ _bt_fix_scankey_strategy(ScanKey skey, int16 *indoption)
752752
*
753753
* Depending on the operator type, the key may be required for both scan
754754
* directions or just one. Also, if the key is a row comparison header,
755-
* we have to mark its first subsidiary ScanKey as required. (Subsequent
756-
* subsidiary ScanKeys are normally for lower-order columns, and thus
757-
* cannot be required, since they're after the first non-equality scankey.)
755+
* we have to mark the appropriate subsidiary ScanKeys as required. In such
756+
* cases, the first subsidiary key is required, but subsequent ones are
757+
* required only as long as they correspond to successive index columns and
758+
* match the leading column as to sort direction. Otherwise the row
759+
* comparison ordering is different from the index ordering and so we can't
760+
* stop the scan on the basis of those lower-order columns.
758761
*
759762
* Note: when we set required-key flag bits in a subsidiary scankey, we are
760763
* scribbling on a data structure belonging to the index AM's caller, not on

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp