Fix memory allocation mistake

Peter Eisentraut <peter@eisentraut.org>

Commit: a5b95016af918c0b147bb21bb52357b45f0376e9
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-11-06T13:22:50Z
Releases: 10.11
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: https://www.postgresql.org/message-id/20191105172918.3e32a446@firost

Files

PathChange+/−
src/backend/replication/logical/relation.c modified +1 −1

Discussion