pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Further improvements to c8f621c43. 3+ messages / 1 participants [nested] [flat]
* pgsql: Further improvements to c8f621c43. @ 2016-03-07 22:26 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 3+ messages in thread From: Andres Freund @ 2016-03-07 22:26 UTC (permalink / raw) To: 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Further improvements to c8f621c43. @ 2016-03-07 22:26 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 3+ messages in thread From: Andres Freund @ 2016-03-07 22:26 UTC (permalink / raw) To: 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Further improvements to c8f621c43. @ 2016-03-07 22:26 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 3+ messages in thread From: Andres Freund @ 2016-03-07 22:26 UTC (permalink / raw) To: 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_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e3e84fd35838a43feef94ea78534713d745e9a08 Modified Files -------------- src/backend/replication/logical/decode.c | 24 +++++++++++++++--------- src/backend/replication/logical/reorderbuffer.c | 3 +++ 2 files changed, 18 insertions(+), 9 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-03-07 22:26 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-03-07 22:26 pgsql: Further improvements to c8f621c43. Andres Freund <andres@anarazel.de> 2016-03-07 22:26 pgsql: Further improvements to c8f621c43. Andres Freund <andres@anarazel.de> 2016-03-07 22:26 pgsql: Further improvements to c8f621c43. Andres Freund <andres@anarazel.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox