pgsql: Fix wrong allocation size in c8f621c43.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Fix wrong allocation size in c8f621c43.
Дата
Msg-id E1acj3q-0005mw-CA@gemulon.postgresql.org
обсуждение исходный текст
Список 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_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/fb3ea0465c1710c565e98d4b3e37aebb4e487eaf

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Fix wrong allocation size in c8f621c43.
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: logical decoding: Tell reorderbuffer about all xids.