mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Coverity and inspection for the issue addressed infd45d16ffound some questionable code. Specifically coverity noticed that the wrong length was added in ReorderBufferSerializeChange() - without immediate negative consequences as the variable isn't used afterwards. During code-review and testing I noticed that a bit of space was wasted when allocating tuple bufs in several places. Thirdly, the debug memset()s in ReorderBufferGetTupleBuf() reduce the error checking valgrind can do. Backpatch: 9.4, likec8f621c43.