aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-07-29 19:24:05 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-07-29 19:24:05 +0000
commit8e21bf52504616024618f3386dc68e8936405dc2 (patch)
tree74c6f1582fbf5d956a43516b69c283208678d18b /src/backend/parser/parse_expr.c
parent3137b496985b4e2242220bdabd4de86cf5c2d36e (diff)
downloadpostgresql-8e21bf52504616024618f3386dc68e8936405dc2.tar.gz
postgresql-8e21bf52504616024618f3386dc68e8936405dc2.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/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions