- Notifications
You must be signed in to change notification settings - Fork5
Commit2dd9322
committed
Move BKP_REMOVABLE bit from individual WAL records to WAL page headers.
Removing this bit from xl_info allows us to restore the old limit of four(not three) separate pages touched by a WAL record, which is needed for theupcoming SP-GiST feature, and will likely be useful elsewhere in future.When we implemented XLR_BKP_REMOVABLE in 2007, we had to do it like thatbecause no special WAL-visible action was taken when starting a backup.However, now we force a segment switch when starting a backup, so acompressing WAL archiver (such as pglesslog) that uses the state shown inthe current page header will not be fooled as to removability of backupblocks. The only downside is that the archiver will not return tocompressing mode for up to one WAL page after the backup is over, which isa small price to pay for getting back the extra xl_info bit. In any casethe archiver could look for XLOG_BACKUP_END records if it thought it wasworth the trouble to do so.Bump XLOG_PAGE_MAGIC since this is effectively a change in WAL format.1 parent8409b60 commit2dd9322
File tree
4 files changed
+44
-42
lines changed- src
- backend/access/transam
- include/access
4 files changed
+44
-42
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
473 | 473 |
| |
474 | 474 |
| |
475 | 475 |
| |
476 |
| - | |
| 476 | + | |
477 | 477 |
| |
478 | 478 |
| |
479 | 479 |
| |
|
Lines changed: 34 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
970 | 970 |
| |
971 | 971 |
| |
972 | 972 |
| |
973 |
| - | |
974 |
| - | |
975 |
| - | |
976 |
| - | |
977 |
| - | |
978 |
| - | |
979 |
| - | |
980 |
| - | |
981 |
| - | |
982 |
| - | |
983 |
| - | |
984 |
| - | |
985 |
| - | |
986 | 973 |
| |
987 | 974 |
| |
988 | 975 |
| |
| |||
1601 | 1588 |
| |
1602 | 1589 |
| |
1603 | 1590 |
| |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1604 | 1606 |
| |
1605 | 1607 |
| |
1606 | 1608 |
| |
| |||
8849 | 8851 |
| |
8850 | 8852 |
| |
8851 | 8853 |
| |
8852 |
| - | |
8853 |
| - | |
8854 |
| - | |
8855 |
| - | |
8856 |
| - | |
8857 |
| - | |
8858 |
| - | |
8859 |
| - | |
8860 |
| - | |
8861 |
| - | |
8862 |
| - | |
8863 |
| - | |
8864 |
| - | |
8865 | 8854 |
| |
8866 | 8855 |
| |
8867 | 8856 |
| |
| |||
8902 | 8891 |
| |
8903 | 8892 |
| |
8904 | 8893 |
| |
| 8894 | + | |
| 8895 | + | |
| 8896 | + | |
| 8897 | + | |
| 8898 | + | |
| 8899 | + | |
| 8900 | + | |
| 8901 | + | |
| 8902 | + | |
| 8903 | + | |
| 8904 | + | |
| 8905 | + | |
| 8906 | + | |
| 8907 | + | |
| 8908 | + | |
| 8909 | + | |
| 8910 | + | |
| 8911 | + | |
| 8912 | + | |
8905 | 8913 |
| |
8906 | 8914 |
| |
8907 | 8915 |
| |
|
Lines changed: 5 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
| 69 | + | |
70 | 70 |
| |
71 | 71 |
| |
72 |
| - | |
73 |
| - | |
| 72 | + | |
| 73 | + | |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
| 78 | + | |
87 | 79 |
| |
88 | 80 |
| |
89 | 81 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
| 74 | + | |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| 109 | + | |
| 110 | + | |
109 | 111 |
| |
110 |
| - | |
| 112 | + | |
111 | 113 |
| |
112 | 114 |
| |
113 | 115 |
| |
|
0 commit comments
Comments
(0)