pgsql: Fix wrong allocation size in c8f621c43. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Fix wrong allocation size in c8f621c43.
Date
Msg-id E1acj3p-0005mZ-2d@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/5d1826fe76e9c82ec938edf054c2e3de52f5285c

Modified Files
--------------
src/backend/replication/logical/reorderbuffer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Fix wrong allocation size in c8f621c43.
Next
From: Andres Freund
Date:
Subject: pgsql: Fix wrong allocation size in c8f621c43.