aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb_util.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-05-17 15:53:21 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-05-17 15:53:21 -0400
commit6c42b2b10af3f717030966b9f05867f3e065becc (patch)
treecebcf67afee0f6844f98de08d16cf547f1549c7d /src/backend/utils/adt/jsonb_util.c
parenta3655dd4a5cee3917a7d1766e07e36013e7e8835 (diff)
downloadpostgresql-6c42b2b10af3f717030966b9f05867f3e065becc.tar.gz
postgresql-6c42b2b10af3f717030966b9f05867f3e065becc.zip
Fix unaligned accesses in DecodeUpdate().
The xl_heap_header_len structures in an XLOG_HEAP_UPDATE record aren't necessarily aligned adequately. The regular replay function for these records is aware of that, but decode.c didn't get the memo. I'm not sure why the buildfarm failed to catch this; the test_decoding test certainly blows up real good on my old HPPA box. Also, I'm pretty sure that the address arithmetic was wrong for the case of XLOG_HEAP_CONTAINS_OLD and not XLOG_HEAP_CONTAINS_NEW_TUPLE, though this apparently can't happen when logical decoding is active.
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
0 files changed, 0 insertions, 0 deletions