- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit20ba5ca
committed
Move WAL continuation record information to WAL page header.
The continuation record only contained one field, xl_rem_len, so it makesthings simpler to just include it in the WAL page header. This wastes fourbytes on pages that don't begin with a continuation from previos page, plusfour bytes on every page, because of padding.The motivation of this is to make it easier to calculate how much space aWAL record needs. Before this patch, it depended on how many page boundariesthe record crosses. The motivation of that, in turn, is to separate theallocation of space in the WAL from the copying of the record data to theallocated space. Keeping the calculation of space required simple helps tokeep the critical section of allocating the space from WAL short. But that'snot included in this patch yet.Bump WAL version number again, as this is an incompatible change.1 parentdfda6eb commit20ba5ca
File tree
2 files changed
+28
-38
lines changed- src
- backend/access/transam
- include/access
2 files changed
+28
-38
lines changedLines changed: 14 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
696 | 696 |
| |
697 | 697 |
| |
698 | 698 |
| |
699 |
| - | |
700 | 699 |
| |
701 | 700 |
| |
702 | 701 |
| |
| |||
1085 | 1084 |
| |
1086 | 1085 |
| |
1087 | 1086 |
| |
1088 |
| - | |
1089 |
| - | |
1090 |
| - | |
| 1087 | + | |
1091 | 1088 |
| |
1092 | 1089 |
| |
1093 | 1090 |
| |
| |||
3941 | 3938 |
| |
3942 | 3939 |
| |
3943 | 3940 |
| |
3944 |
| - | |
| 3941 | + | |
| 3942 | + | |
3945 | 3943 |
| |
3946 | 3944 |
| |
3947 | 3945 |
| |
| |||
3969 | 3967 |
| |
3970 | 3968 |
| |
3971 | 3969 |
| |
3972 |
| - | |
3973 |
| - | |
3974 |
| - | |
3975 |
| - | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
3976 | 3975 |
| |
3977 | 3976 |
| |
3978 | 3977 |
| |
3979 | 3978 |
| |
3980 | 3979 |
| |
3981 |
| - | |
| 3980 | + | |
3982 | 3981 |
| |
3983 | 3982 |
| |
3984 | 3983 |
| |
3985 | 3984 |
| |
3986 |
| - | |
3987 |
| - | |
| 3985 | + | |
| 3986 | + | |
3988 | 3987 |
| |
3989 |
| - | |
| 3988 | + | |
3990 | 3989 |
| |
3991 | 3990 |
| |
3992 | 3991 |
| |
3993 | 3992 |
| |
3994 |
| - | |
3995 |
| - | |
| 3993 | + | |
3996 | 3994 |
| |
3997 | 3995 |
| |
3998 | 3996 |
| |
3999 | 3997 |
| |
4000 | 3998 |
| |
4001 | 3999 |
| |
4002 | 4000 |
| |
4003 |
| - | |
4004 |
| - | |
| 4001 | + | |
4005 | 4002 |
| |
4006 | 4003 |
| |
4007 | 4004 |
| |
|
Lines changed: 14 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 | 51 |
| |
72 | 52 |
| |
73 | 53 |
| |
74 |
| - | |
| 54 | + | |
75 | 55 |
| |
76 | 56 |
| |
77 | 57 |
| |
78 | 58 |
| |
79 | 59 |
| |
80 | 60 |
| |
81 | 61 |
| |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
82 | 75 |
| |
83 | 76 |
| |
84 | 77 |
| |
|
0 commit comments
Comments
(0)