pgsql: Initialize all memory for logical replication relation cache.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Initialize all memory for logical replication relation cache.
Date: 2017-04-23 22:57:50
Message-ID: E1d2QRy-0002GC-SX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Initialize all memory for logical replication relation cache.

As reported by buildfarm animal skink / valgrind, some of the
variables weren't always initialized. To avoid further mishaps use
memset to ensure the entire entry is initialized.

Author: Petr Jelinek
Reported-By: Andres Freund
Discussion: https://postgr.es/m/20170422183123.w2jgiuxtts7qrqaq@alap3.anarazel.de
Backpatch: none, code new in master

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e84d243b1ce6366e8415cefc623ca53e73a20393

Modified Files
--------------
src/backend/replication/logical/relation.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-04-23 22:57:52 pgsql: Zero padding in replication origin's checkpointed on disk-state.
Previous Message Thomas Munro 2017-04-23 22:34:44 Re: [COMMITTERS] pgsql: Replication lag tracking for walsenders