- Notifications
You must be signed in to change notification settings - Fork5
Commit76d5667
committed
Fix recently-identified PITR recovery hazard: the base backup could contain
stale relcache init files (pg_internal.init), and there is no mechanism forupdating them during WAL replay. Easiest solution is just to delete the initfiles at conclusion of startup, and let the first backend started in eachdatabase take care of rebuilding the init file. Simon Riggs and Tom Lane.Back-patched to 8.1. Arguably this should be fixed in 8.0 too, but it wouldrequire significantly more code since 8.0 has no handy startup-time scan ofpg_database to piggyback on. Manual solution of the problem is possiblein 8.0 (just delete the pg_internal.init files before starting WAL replay),so that may be a sufficient answer.1 parent48188e1 commit76d5667
File tree
3 files changed
+50
-6
lines changed- src
- backend/utils
- cache
- init
- include/utils
3 files changed
+50
-6
lines changedLines changed: 23 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
3586 | 3586 |
| |
3587 | 3587 |
| |
3588 | 3588 |
| |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
| 3592 | + | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
| 3605 | + | |
| 3606 | + | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
| 3610 | + |
Lines changed: 25 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| |||
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
| 51 | + | |
50 | 52 |
| |
51 | 53 |
| |
52 | 54 |
| |
| |||
165 | 167 |
| |
166 | 168 |
| |
167 | 169 |
| |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
168 | 175 |
| |
169 | 176 |
| |
170 |
| - | |
| 177 | + | |
171 | 178 |
| |
172 | 179 |
| |
173 | 180 |
| |
| |||
248 | 255 |
| |
249 | 256 |
| |
250 | 257 |
| |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
251 | 269 |
| |
252 | 270 |
| |
253 | 271 |
| |
| |||
669 | 687 |
| |
670 | 688 |
| |
671 | 689 |
| |
| 690 | + | |
| 691 | + | |
| 692 | + | |
672 | 693 |
| |
673 | 694 |
| |
674 | 695 |
| |
| |||
699 | 720 |
| |
700 | 721 |
| |
701 | 722 |
| |
702 |
| - | |
| 723 | + | |
703 | 724 |
| |
704 | 725 |
| |
705 | 726 |
| |
| |||
811 | 832 |
| |
812 | 833 |
| |
813 | 834 |
| |
814 |
| - | |
| 835 | + | |
815 | 836 |
| |
816 | 837 |
| |
817 | 838 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
| 72 | + | |
72 | 73 |
| |
73 | 74 |
| |
74 | 75 |
| |
|
0 commit comments
Comments
(0)