Fix dangling pointer problem in ReorderBufferSerializeChange.
authorRobert Haas <rhaas@postgresql.org>
Wed, 28 Sep 2016 15:19:46 +0000 (11:19 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 28 Sep 2016 15:22:39 +0000 (11:22 -0400)
commit32841fa325de298e0bad771c588354fd59866e42
treec118893d2a6d25720ef230d0512bf6a53d956d12
parentf0631bda9bf729161490da76414648dafcc0adbe
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.
src/backend/replication/logical/reorderbuffer.c