diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-07-29 19:23:28 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-07-29 19:23:28 +0000 |
| commit | c04b3f45b9f9c963d8d008d93651fec6a4abf66e (patch) | |
| tree | d22195920d16cf62f366dc99139c8c880912c3c8 /src/backend/regex/regerror.c | |
| parent | 19600de6389a6dbfcf5d4b6bb457782c2e94745a (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/backend/regex/regerror.c')
0 files changed, 0 insertions, 0 deletions
