- Notifications
You must be signed in to change notification settings - Fork5
Commit0038110
committed
Avoid repeated CLOG access from heap_hot_search_buffer.
At the time we check whether the tuple is dead to all runningtransactions, we've already verified that it isn't visible to ourscan, setting hint bits if appropriate. So there's no need torecheck CLOG for the all-dead test we do just a moment later.So, add HeapTupleIsSurelyDead() to test the appropriate conditionunder the assumption that all relevant hit bits are already set.Review by Tom Lane.1 parent1b4998f commit0038110
3 files changed
+43
-2
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1609 | 1609 |
| |
1610 | 1610 |
| |
1611 | 1611 |
| |
1612 |
| - | |
1613 |
| - | |
| 1612 | + | |
1614 | 1613 |
| |
1615 | 1614 |
| |
1616 | 1615 |
| |
|
Lines changed: 40 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1219 | 1219 |
| |
1220 | 1220 |
| |
1221 | 1221 |
| |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
1222 | 1262 |
| |
1223 | 1263 |
| |
1224 | 1264 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
| 86 | + | |
| 87 | + | |
86 | 88 |
| |
87 | 89 |
| |
88 | 90 |
| |
|
0 commit comments
Comments
(0)