- Notifications
You must be signed in to change notification settings - Fork5
Commitc01262a
committed
Eliminate xmin from hash tag for predicate locks on heap tuples.
If a tuple was frozen while its predicate locks mattered,read-write dependencies could be missed, resulting in failure todetect conflicts which could lead to anomalies in committedserializable transactions.This field was added to the tag when we still thought that it wasnecessary to carry locks forward to a new version of an updatedrow. That was later proven to be unnecessary, which allowedsimplification of the code, but elimination of xmin from the tagwas missed at the time.Per report and analysis by Heikki Linnakangas.Backpatch to 9.1.1 parent2e1cb73 commitc01262a
File tree
2 files changed
+14
-29
lines changed- src
- backend/storage/lmgr
- include/storage
2 files changed
+14
-29
lines changedLines changed: 5 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
159 |
| - | |
| 159 | + | |
160 | 160 |
| |
161 |
| - | |
| 161 | + | |
162 | 162 |
| |
163 | 163 |
| |
164 | 164 |
| |
| |||
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
384 |
| - | |
| 384 | + | |
385 | 385 |
| |
386 | 386 |
| |
387 | 387 |
| |
| |||
2492 | 2492 |
| |
2493 | 2493 |
| |
2494 | 2494 |
| |
2495 |
| - | |
2496 |
| - | |
2497 | 2495 |
| |
2498 | 2496 |
| |
2499 | 2497 |
| |
| |||
2512 | 2510 |
| |
2513 | 2511 |
| |
2514 | 2512 |
| |
2515 |
| - | |
2516 |
| - | |
| 2513 | + | |
2517 | 2514 |
| |
2518 | 2515 |
| |
2519 | 2516 |
| |
| |||
4283 | 4280 |
| |
4284 | 4281 |
| |
4285 | 4282 |
| |
4286 |
| - | |
4287 |
| - | |
| 4283 | + | |
4288 | 4284 |
| |
4289 | 4285 |
| |
4290 | 4286 |
| |
|
Lines changed: 9 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
254 | 254 |
| |
255 | 255 |
| |
256 | 256 |
| |
257 |
| - | |
258 |
| - | |
259 |
| - | |
260 |
| - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
261 | 261 |
| |
262 | 262 |
| |
263 | 263 |
| |
| |||
272 | 272 |
| |
273 | 273 |
| |
274 | 274 |
| |
275 |
| - | |
276 | 275 |
| |
277 | 276 |
| |
278 | 277 |
| |
| |||
283 | 282 |
| |
284 | 283 |
| |
285 | 284 |
| |
286 |
| - | |
287 |
| - | |
288 |
| - | |
289 |
| - | |
290 |
| - | |
291 |
| - | |
292 | 285 |
| |
293 | 286 |
| |
294 | 287 |
| |
| |||
398 | 391 |
| |
399 | 392 |
| |
400 | 393 |
| |
401 |
| - | |
402 |
| - | |
| 394 | + | |
403 | 395 |
| |
404 | 396 |
| |
405 | 397 |
| |
406 | 398 |
| |
407 | 399 |
| |
408 |
| - | |
409 |
| - | |
| 400 | + | |
410 | 401 |
| |
411 |
| - | |
| 402 | + | |
412 | 403 |
| |
413 | 404 |
| |
414 | 405 |
| |
415 |
| - | |
416 |
| - | |
| 406 | + | |
417 | 407 |
| |
418 | 408 |
| |
419 | 409 |
| |
| |||
423 | 413 |
| |
424 | 414 |
| |
425 | 415 |
| |
426 |
| - | |
427 |
| - | |
428 | 416 |
| |
429 | 417 |
| |
430 | 418 |
| |
| |||
462 | 450 |
| |
463 | 451 |
| |
464 | 452 |
| |
| 453 | + | |
465 | 454 |
| |
466 | 455 |
| |
467 | 456 |
| |
|
0 commit comments
Comments
(0)