forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita8d539f
committed
To support external compression of archived WAL data, add a flag bit to
WAL records that shows whether it is safe to remove full-page images(ie, whether or not an on-line backup was in progress when the WAL entrywas made). Also make provision for an XLOG_NOOP record type that can beused to fill in the extra space when decompressing the data for restore.This is the portion of Koichi Suzuki's "full page writes" patch thathas to go into the core database. The remainder of that work is twoexternal compression and decompression programs, which for the time beingwill undergo separate development on pgfoundry. Per discussion.Also, twiddle the handling of BTREE_SPLIT records to ensure it'll bepossible to compress them (the previous coding caused essential infoto be omitted). The other commonly-used record types seem OK already,with the possible exception of GIN and GIST WAL records, which I don'tunderstand well enough to opine on.1 parent2f2717d commita8d539f
File tree
6 files changed
+53
-17
lines changed- src
- backend/access
- nbtree
- transam
- include
- access
- catalog
6 files changed
+53
-17
lines changedLines changed: 9 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1034 | 1034 |
| |
1035 | 1035 |
| |
1036 | 1036 |
| |
1037 |
| - | |
1038 |
| - | |
1039 |
| - | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
1040 | 1041 |
| |
1041 | 1042 |
| |
1042 | 1043 |
| |
1043 | 1044 |
| |
1044 | 1045 |
| |
| 1046 | + | |
1045 | 1047 |
| |
1046 | 1048 |
| |
1047 |
| - | |
1048 |
| - | |
| 1049 | + | |
1049 | 1050 |
| |
1050 | 1051 |
| |
1051 | 1052 |
| |
| 1053 | + | |
1052 | 1054 |
| |
1053 | 1055 |
| |
1054 | 1056 |
| |
| |||
1064 | 1066 |
| |
1065 | 1067 |
| |
1066 | 1068 |
| |
| 1069 | + | |
1067 | 1070 |
| |
1068 | 1071 |
| |
1069 | 1072 |
| |
|
Lines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
295 |
| - | |
| 295 | + | |
296 | 296 |
| |
297 |
| - | |
298 |
| - | |
299 | 297 |
| |
300 | 298 |
| |
301 | 299 |
| |
302 | 300 |
| |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
303 | 306 |
| |
304 | 307 |
| |
305 | 308 |
| |
|
Lines changed: 22 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 |
| |
| |||
783 | 783 |
| |
784 | 784 |
| |
785 | 785 |
| |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
786 | 799 |
| |
787 | 800 |
| |
788 | 801 |
| |
| |||
5868 | 5881 |
| |
5869 | 5882 |
| |
5870 | 5883 |
| |
| 5884 | + | |
| 5885 | + | |
| 5886 | + | |
| 5887 | + | |
5871 | 5888 |
| |
5872 | 5889 |
| |
5873 | 5890 |
| |
| |||
5894 | 5911 |
| |
5895 | 5912 |
| |
5896 | 5913 |
| |
| 5914 | + | |
| 5915 | + | |
| 5916 | + | |
| 5917 | + | |
5897 | 5918 |
| |
5898 | 5919 |
| |
5899 | 5920 |
| |
|
Lines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
70 |
| - | |
| 69 | + | |
71 | 70 |
| |
72 | 71 |
| |
73 | 72 |
| |
| |||
76 | 75 |
| |
77 | 76 |
| |
78 | 77 |
| |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
79 | 87 |
| |
80 | 88 |
| |
81 | 89 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
| 74 | + | |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
|
Lines changed: 2 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 |
| |
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
|
0 commit comments
Comments
(0)