diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-07-29 19:23:58 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-07-29 19:23:58 +0000 |
commit | 9e468f94aa30cef7c188a2b8b0d26f26130d44c0 (patch) | |
tree | 0a9bffdfbceab3625af4a2391867a784374f7a8a /src/backend/commands/async.c | |
parent | 76a106f264b78b35b4f522e07cca84b90af83f50 (diff) | |
download | postgresql-9e468f94aa30cef7c188a2b8b0d26f26130d44c0.tar.gz postgresql-9e468f94aa30cef7c188a2b8b0d26f26130d44c0.zip |
Fix another longstanding problem in copy_relation_data: it was blithely
assuming that a local char[] array would be aligned on at least a word
boundary. There are architectures on which that is pretty much guaranteed to
NOT be the case ... and those arches also don't like non-aligned memory
accesses, meaning that log_newpage() would crash if it ever got invoked.
Even on Intel-ish machines there's a potential for a large performance penalty
from doing I/O to an inadequately aligned buffer. So palloc it instead.
Backpatch to 8.0 --- 7.4 doesn't have this code.
Diffstat (limited to 'src/backend/commands/async.c')
0 files changed, 0 insertions, 0 deletions