forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8c843ff
committed
Bootstrap WAL to begin at segment logid=0 logseg=1 (000000010000000000000001)
rather than 0/0, so that we can safely use 0/0 as an invalid value. This is amore future-proof fix for the corner-case bug in streaming replication thatwas fixed yesterday. We had a similar corner-case bug with log/seg 0/0 back inFebruary as well. Avoiding 0/0 as a valid value should prevent bugs like thatin the future. Per Tom Lane's idea.Back-patch to 9.0. Since this only affects bootstrapping, it makes nodifference to existing installations. We don't need to worry about thebug in existing installations, because if you've managed to get past theinitial base backup already, you won't hit the bug in the future either.1 parent0811ff2 commit8c843ff
2 files changed
+13
-10
lines changedLines changed: 12 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
364 | 364 |
| |
365 | 365 |
| |
366 | 366 |
| |
367 |
| - | |
| 367 | + | |
368 | 368 |
| |
369 | 369 |
| |
370 | 370 |
| |
| |||
3218 | 3218 |
| |
3219 | 3219 |
| |
3220 | 3220 |
| |
3221 |
| - | |
3222 |
| - | |
3223 |
| - | |
| 3221 | + | |
3224 | 3222 |
| |
3225 | 3223 |
| |
3226 | 3224 |
| |
| |||
3249 | 3247 |
| |
3250 | 3248 |
| |
3251 | 3249 |
| |
3252 |
| - | |
3253 | 3250 |
| |
3254 | 3251 |
| |
3255 | 3252 |
| |
| |||
4903 | 4900 |
| |
4904 | 4901 |
| |
4905 | 4902 |
| |
4906 |
| - | |
| 4903 | + | |
| 4904 | + | |
| 4905 | + | |
| 4906 | + | |
| 4907 | + | |
| 4908 | + | |
| 4909 | + | |
4907 | 4910 |
| |
4908 |
| - | |
| 4911 | + | |
4909 | 4912 |
| |
4910 | 4913 |
| |
4911 | 4914 |
| |
| |||
4928 | 4931 |
| |
4929 | 4932 |
| |
4930 | 4933 |
| |
4931 |
| - | |
| 4934 | + | |
4932 | 4935 |
| |
4933 | 4936 |
| |
4934 | 4937 |
| |
| |||
4954 | 4957 |
| |
4955 | 4958 |
| |
4956 | 4959 |
| |
4957 |
| - | |
| 4960 | + | |
4958 | 4961 |
| |
4959 | 4962 |
| |
4960 | 4963 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
654 | 654 |
| |
655 | 655 |
| |
656 | 656 |
| |
657 |
| - | |
| 657 | + | |
658 | 658 |
| |
659 | 659 |
| |
660 | 660 |
| |
|
0 commit comments
Comments
(0)