forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf4a3e67
committed
Correctly init/deinit recovery xact environment.
Previously we performed VirtualXactLockTableInsertbut didn't set MyProc->lxid for Startup process.pg_locks now correctly shows "1/1" for vxidof Startup process during Hot Standby.At end of Hot Standby the Virtual Transactionwas not deleted, leading to problems afterpromoting to normal running for some commands,such as CREATE INDEX CONCURRENTLY.1 parent1dbd02d commitf4a3e67
3 files changed
+27
-1
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 |
| - | |
| 85 | + | |
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
| 101 | + | |
| 102 | + | |
101 | 103 |
| |
102 | 104 |
| |
103 | 105 |
| |
104 | 106 |
| |
105 | 107 |
| |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
106 | 113 |
| |
107 | 114 |
| |
108 | 115 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
534 | 534 |
| |
535 | 535 |
| |
536 | 536 |
| |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
537 | 555 |
| |
538 | 556 |
| |
539 | 557 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
|
0 commit comments
Comments
(0)