forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite2ed7e3
committed
Fix GetStrictOldestNonRemovableTransactionId() on standby
e85662d implemented GetStrictOldestNonRemovableTransactionId() functionfor computation of xid horizon that avoid reporting of false errors.However, GetStrictOldestNonRemovableTransactionId() usesGetRunningTransactionData() even on standby leading to an assertion failure.Given that we decided to ignore KnownAssignedXids and standby can't haveown running xids, we switch to use TransamVariables->nextXid as a xid horizon.Also, revise the comment regarding ignoring KnownAssignedXids with moredetailed reasoning provided by Heikki.Reported-by: Heikki LinnakangasDiscussion:https://postgr.es/m/42218c4f-2c8d-40a3-8743-4d34dd0e4cce%40iki.fiReviewed-by: Heikki Linnakangas1 parent9e9a2b7 commite2ed7e3
File tree
2 files changed
+40
-5
lines changed- contrib/pg_visibility
- t
2 files changed
+40
-5
lines changedLines changed: 23 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
546 | 546 |
| |
547 | 547 |
| |
548 | 548 |
| |
549 |
| - | |
550 |
| - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
551 | 553 |
| |
552 | 554 |
| |
553 | 555 |
| |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
554 | 564 |
| |
555 | 565 |
| |
556 | 566 |
| |
| |||
560 | 570 |
| |
561 | 571 |
| |
562 | 572 |
| |
563 |
| - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
564 | 584 |
| |
565 | 585 |
| |
566 | 586 |
| |
|
Lines changed: 17 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| 13 | + | |
13 | 14 |
| |
14 |
| - | |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 |
| |
19 | 26 |
| |
20 | 27 |
| |
| |||
39 | 46 |
| |
40 | 47 |
| |
41 | 48 |
| |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
42 | 56 |
| |
43 | 57 |
| |
44 | 58 |
| |
45 | 59 |
| |
| 60 | + | |
46 | 61 |
| |
47 | 62 |
|
0 commit comments
Comments
(0)