forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc714ebd
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 parentbd19ab2 commitc714ebd
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 | |
---|---|---|---|
| |||
10149 | 10149 |
| |
10150 | 10150 |
| |
10151 | 10151 |
| |
| 10152 | + | |
| 10153 | + | |
| 10154 | + | |
| 10155 | + | |
10152 | 10156 |
| |
10153 | 10157 |
| |
10154 | 10158 |
| |
|
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)