- Notifications
You must be signed in to change notification settings - Fork5.3k
Commitc902bd5
committed
Update obsolete row compare preprocessing comments.
We have some limited ability to detect redundant and contradictoryconditions involving an nbtree row comparison key following commitsf09816a andbd3f59f: we can do so in simple cases involving IS NULLand IS NOT NULL keys on a row compare key's first column. We canlikewise determine that a scan's qual is unsatisfiable given a rowcompare whose first subkey's arg is NULL. Update obsolete comments thatclaimed that we merely copied row compares into the output key array"without any editorialization".Also update another _bt_preprocess_keys header comment paragraph: add aparenthetical remark that points out that preprocessing will generate askip array for the preceding example qual. That will ultimate lead topreprocessing marking the example's lower-order y key required -- whichis exactly what the example supposes cannot happen. Keep the originalcomment, though, since it accurately describes the mechanical rules thatdetermine which keys get marked required in the absence of skip arrays(which can occasionally still matter). This fixes an oversight incommit92fe23d, which added the nbtree skip scan optimization.Author: Peter Geoghegan <pg@bowt.ie>Backpatch-through: 181 parent3881561 commitc902bd5
1 file changed
+16
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| |||
177 | 181 | | |
178 | 182 | | |
179 | 183 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
187 | 196 | | |
188 | 197 | | |
189 | 198 | | |
| |||
0 commit comments
Comments
(0)