Initialize all memory for logical replication relation cache.
authorAndres Freund <andres@anarazel.de>
Sun, 23 Apr 2017 22:36:47 +0000 (15:36 -0700)
committerAndres Freund <andres@anarazel.de>
Sun, 23 Apr 2017 22:54:41 +0000 (15:54 -0700)
commite84d243b1ce6366e8415cefc623ca53e73a20393
tree2244921d33fab6a5171b8f8eed5467a65b15aeaf
parent61c21ddad03dda1f92a05a723cf449087d80ec08
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
src/backend/replication/logical/relation.c