aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-11-26 13:23:03 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-11-26 13:23:03 -0500
commitcb7ea8d9857b75d599f249bb6119c4fab08f9d14 (patch)
treeff04ea7c13ade3d9b648834e4b55e517188e48b2 /src/backend/storage/buffer
parent6430a11fa9bc2e56d468283ac73c9c15253ae32e (diff)
downloadpostgresql-cb7ea8d9857b75d599f249bb6119c4fab08f9d14.tar.gz
postgresql-cb7ea8d9857b75d599f249bb6119c4fab08f9d14.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')
0 files changed, 0 insertions, 0 deletions