From: Tatsuo Ishii <ishii@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix integer overflow in debug message of walreceiver
Date: Fri, 13 Mar 2015 23:25:04 +0000
Message-ID: <E1YWYwy-0001Hh-HP@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Fix integer overflow in debug message of walreceiver
The message tries to tell the replication apply delay which fails if
the first WAL record is not applied yet. Fix is, instead of telling
overflowed minus numeric, showing "N/A" which indicates that the delay
data is not yet available. Problem reported by me and patch by
FabrÃzio de Royes Mello.
Back patched to 9.4, 9.3 and 9.2 stable branches (9.1 and 9.0 do not
have the debug message).
Branch
------
REL9_3_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/089b371a3977bd3a7b71a79966e8ea86296ecda3
Modified Files
--------------
src/backend/replication/walreceiver.c | 21 ++++++++++++++++-----
src/backend/replication/walreceiverfuncs.c | 12 ++++++++++--
2 files changed, 26 insertions(+), 7 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: ishii@postgresql.org
Subject: Re: pgsql: Fix integer overflow in debug message of walreceiver
In-Reply-To: <E1YWYwy-0001Hh-HP@gemulon.postgresql.org>
References: <E1YWYwy-0001Hh-HP@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox