git.postgresql.org Git - postgresql.git/commit
2010年7月29日 19:23:20 +0000 (19:23 +0000)
2010年7月29日 19:23:20 +0000 (19:23 +0000)
commit 984d56b80f5a945db2bfa80499b5ed913848242b
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.
This is the main PostgreSQL git repository.
RSS
Atom