Fix memory allocation mistake

Peter Eisentraut <peter@eisentraut.org>

Commit: 39a6210f9e0fb3f285934f275f6dbffbc7c3fae9
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-11-06T13:22:29Z
Releases: 12.1
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