aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2017-03-02 00:03:27 -0500
committerNoah Misch <noah@leadboat.com>2017-03-02 00:03:32 -0500
commit0cc864b002b0b4a5970e2fdc9445216d0a23b7d6 (patch)
tree408c7563890c3221eba7874f0688dc9b44882492 /src/backend/commands/dbcommands.c
parent3a1a422fa57a193f5dda93ea1b7941fdac42ac96 (diff)
downloadpostgresql-0cc864b002b0b4a5970e2fdc9445216d0a23b7d6.tar.gz
postgresql-0cc864b002b0b4a5970e2fdc9445216d0a23b7d6.zip
Handle unaligned SerializeSnapshot() buffer.
Likewise in RestoreSnapshot(). Do so by copying between the user buffer and a stack buffer of known alignment. Back-patch to 9.6, where this last applies cleanly. In master, the select_parallel test dies with SIGBUS on "Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC", building 32-bit with gcc 4.9.2. In 9.6 and 9.5, the buffers in question happen to be sufficiently-aligned, and this change is mere insurance against future 9.6 changes or extension code compromising that.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions