forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit98eb3e0
committed
Fix "missing continuation record" after standby promotion
Invalidate abortedRecPtr and missingContrecPtr after a missingcontinuation record is successfully skipped on a standby. This fixes aPANIC caused when a recently promoted standby attempts to write anOVERWRITE_RECORD with an LSN of the previously read aborted record.Backpatch to 10 (all stable versions).Author: Sami Imseih <simseih@amazon.com>Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>Discussion:https://postgr.es/m/44D259DE-7542-49C4-8A52-2AB01534DCA9@amazon.com1 parentf784fcd commit98eb3e0
File tree
2 files changed
+8
-1
lines changed- src
- backend/access/transam
- test/recovery/t
2 files changed
+8
-1
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10383 | 10383 |
| |
10384 | 10384 |
| |
10385 | 10385 |
| |
| 10386 | + | |
| 10387 | + | |
| 10388 | + | |
| 10389 | + | |
10386 | 10390 |
| |
10387 | 10391 |
| |
10388 | 10392 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| 105 | + | |
| 106 | + | |
| 107 | + | |
105 | 108 |
| |
106 | 109 |
|
0 commit comments
Comments
(0)