pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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-0001Hj-HU@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_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4909cb59df40a011b041ce97a68e4d73a54da6ee

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


view thread (4+ messages)  latest in thread

Message-ID: <E1YWYwy-0001Hj-HU@gemulon.postgresql.org>
Permalink:  ../E1YWYwy-0001Hj-HU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YWYwy-0001Hj-HU@gemulon.postgresql.org

 · 

reply

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-0001Hj-HU@gemulon.postgresql.org>
  References: <E1YWYwy-0001Hj-HU@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