pgsql: Further improvements to c8f621c43.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Further improvements to c8f621c43.
Дата
Msg-id E1ad3bZ-0001IW-6h@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Further improvements to c8f621c43.

Coverity and inspection for the issue addressed in fd45d16f found some
questionable code.

Specifically coverity noticed that the wrong length was added in
ReorderBufferSerializeChange() - without immediate negative consequences
as the variable isn't used afterwards.  During code-review and testing I
noticed that a bit of space was wasted when allocating tuple bufs in
several places.  Thirdly, the debug memset()s in
ReorderBufferGetTupleBuf() reduce the error checking valgrind can do.

Backpatch: 9.4, like c8f621c43.

Branch
------
master

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

Modified Files
--------------
src/backend/replication/logical/decode.c        | 28 +++++++++++++++++--------
src/backend/replication/logical/reorderbuffer.c |  5 ++++-
2 files changed, 23 insertions(+), 10 deletions(-)


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

Предыдущее
От: Artur Zakirov
Дата:
Сообщение: Re: pgsql: Improve support of Hunspell in ispell dictionary.
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Further improvements to c8f621c43.