Fix dangling pointer problem in ReorderBufferSerializeChange.

Robert Haas <rhaas@postgresql.org>

Commit: 308985b0b404a5891a1a629f38cc46c2b2dcb4be
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-09-28T15:19:46Z
Releases: 10.0
Fix dangling pointer problem in ReorderBufferSerializeChange.

Commit 3fe3511d05127cc024b221040db2eeb352e7d716 introduced a new
case into this function, but neglected to ensure that the "ondisk"
pointer got updated after a possible reallocation as the code does
in other cases.

Stas Kelvich, per diagnosis by Konstantin Knizhnik.

Files

PathChange+/−
src/backend/replication/logical/reorderbuffer.c modified +3 −0