pgsql: Fix memory allocation mistake

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix memory allocation mistake
Date: 2019-11-06 13:32:59
Message-ID: E1iSLQh-0006Tc-8c@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)dalibo(dot)com>
Discussion: https://www.postgresql.org/message-id/20191105172918.3e32a446@firost

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/39a6210f9e0fb3f285934f275f6dbffbc7c3fae9

Modified Files
--------------
src/backend/replication/logical/relation.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-11-06 16:12:00 pgsql: Sync our DTrace infrastructure with c.h's definition of type boo
Previous Message Fujii Masao 2019-11-06 09:49:49 Re: pgsql: doc: Further clarify how recovery target parameters are applied