Fix wrong allocation size in c8f621c43.

Andres Freund <andres@anarazel.de>

Commit: 5d1826fe76e9c82ec938edf054c2e3de52f5285c
Author: Andres Freund <andres@anarazel.de>
Date: 2016-03-07T00:27:20Z
Releases: 9.5.2
Fix wrong allocation size in c8f621c43.

In c8f621c43 I forgot to account for MAXALIGN when allocating a new
tuplebuf in ReorderBufferGetTupleBuf(). That happens to currently not
cause active problems on a number of platforms because the affected
pointer is already aligned, but others, like ppc and hppa, trigger this
in the regression test, due to a debug memset clearing memory.

Fix that.

Backpatch: 9.4, like the previous commit.

Files

PathChange+/−
src/backend/replication/logical/reorderbuffer.c modified +2 −1