forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit984d56b
committed
Fix another longstanding problem in copy_relation_data: it was blithely
assuming that a local char[] array would be aligned on at least a wordboundary. There are architectures on which that is pretty much guaranteed toNOT be the case ... and those arches also don't like non-aligned memoryaccesses, meaning that log_newpage() would crash if it ever got invoked.Even on Intel-ish machines there's a potential for a large performance penaltyfrom doing I/O to an inadequately aligned buffer. So palloc it instead.Backpatch to 8.0 --- 7.4 doesn't have this code.1 parent5b48e2e commit984d56b
1 file changed
+14
-3
lines changedLines changed: 14 additions & 3 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 |
| |
| |||
7230 | 7230 |
| |
7231 | 7231 |
| |
7232 | 7232 |
| |
| 7233 | + | |
| 7234 | + | |
7233 | 7235 |
| |
7234 | 7236 |
| |
7235 | 7237 |
| |
7236 |
| - | |
7237 |
| - | |
| 7238 | + | |
| 7239 | + | |
| 7240 | + | |
| 7241 | + | |
| 7242 | + | |
| 7243 | + | |
| 7244 | + | |
| 7245 | + | |
| 7246 | + | |
7238 | 7247 |
| |
7239 | 7248 |
| |
7240 | 7249 |
| |
| |||
7263 | 7272 |
| |
7264 | 7273 |
| |
7265 | 7274 |
| |
| 7275 | + | |
| 7276 | + | |
7266 | 7277 |
| |
7267 | 7278 |
| |
7268 | 7279 |
| |
|
0 commit comments
Comments
(0)