Fix memory allocation mistake

Peter Eisentraut <peter@eisentraut.org>

Commit: d40abd5fcfb25d764419f8e9bffa5cdbdb247c1b
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-11-06T13:20:29Z
Releases: 13.0
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