- Notifications
You must be signed in to change notification settings - Fork5
Commit21fda22
committed
Change CRCs in WAL records from 64bit to 32bit for performance reasons.
Instead of a separate CRC on each backup block, include backup blocksin their parent WAL record's CRC; this is important to ensure that thebackup block really goes with the WAL record, ie there was not a pagetear right at the start of the backup block. Implement a simple formof compression of backup blocks: drop any run of zeroes starting atpd_lower, so as not to store the unused 'hole' that commonly exists inPG heap and index pages. Tweak PageRepairFragmentation and relatedroutines to ensure they keep the unused space zeroed, so that the abovecompression method remains effective. All per recent discussions.1 parentc196c7a commit21fda22
File tree
11 files changed
+511
-207
lines changed- src
- backend
- access
- nbtree
- transam
- storage/page
- utils/hash
- bin
- pg_controldata
- pg_resetxlog
- include
- access
- catalog
- utils
11 files changed
+511
-207
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
116 | 123 |
| |
117 | 124 |
| |
118 | 125 |
| |
|
Lines changed: 8 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 |
| |
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
138 | 145 |
| |
139 | 146 |
| |
140 | 147 |
| |
|
0 commit comments
Comments
(0)