aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer/bufmgr.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-11-26 13:23:02 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-11-26 13:23:02 -0500
commitb7fc1dd1fed3c38b1d95c6433b65cbbd22c0323f (patch)
treeee189051b04272a9817865b735ef8aa358f085bb /src/backend/storage/buffer/bufmgr.c
parent3d357b48f901503ecc69c529e5bbcd3f84ba5094 (diff)
downloadpostgresql-b7fc1dd1fed3c38b1d95c6433b65cbbd22c0323f.tar.gz
postgresql-b7fc1dd1fed3c38b1d95c6433b65cbbd22c0323f.zip
Fix failure to consider failure cases in GetComboCommandId().
Failure to initially palloc the comboCids array, or to realloc it bigger when needed, left combocid's data structures in an inconsistent state that would cause trouble if the top transaction continues to execute. Noted while examining a user complaint about the amount of memory used for this. (There's not much we can do about that, but it does point up that repalloc failure has a non-negligible chance of occurring here.) In HEAD/9.5, also avoid possible invocation of memcpy() with a null pointer in SerializeComboCIDState; cf commit 13bba0227.
Diffstat (limited to 'src/backend/storage/buffer/bufmgr.c')
0 files changed, 0 insertions, 0 deletions