diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-07-29 19:23:44 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-07-29 19:23:44 +0000 |
commit | 242dc3819b9667eb4a8118a779932d42dce7d849 (patch) | |
tree | 8617a8579a384f99df3180edebce2644f6a33cac /src/tutorial/complex.c | |
parent | 0378e4e73de6019353caff1cca43562d0c0e49d6 (diff) |
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/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions