Fix memory allocation mistake
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 6 Nov 2019 13:20:29 +0000 (14:20 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 6 Nov 2019 13:20:29 +0000 (14:20 +0100)
commitd40abd5fcfb25d764419f8e9bffa5cdbdb247c1b
tree09da82cd3139147ab431ec7fd26002e31ae80025
parent5b7ba75f7ff854003231e8099e3038c7e2eba875
Fix memory allocation mistake

The previous code was allocating more memory than necessary because
the formula used the wrong data type.

Reported-by: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Discussion: http://www.postgresql.org/message-id/20191105172918.3e32a446@firost
src/backend/replication/logical/relation.c