pgsql: Further improvements to c8f621c43. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Further improvements to c8f621c43.
Date
Msg-id E1ad3ba-0001It-97@gemulon.postgresql.org
Whole thread Raw
List 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
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/250e5bd7129d0b54594dc225f7380545189b70c1

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 by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Further improvements to c8f621c43.
Next
From: Joe Conway
Date:
Subject: pgsql: Make get_controlfile() error logging consistent with src/common