pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix integer overflow in debug message of walreceiver 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix integer overflow in debug message of walreceiver @ 2015-03-13 23:25 Tatsuo Ishii <ishii@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Tatsuo Ishii @ 2015-03-13 23:25 UTC (permalink / raw) To: pgsql-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 ------ master Details ------- http://git.postgresql.org/pg/commitdiff/364c006c1fba7ba7825fb06ef0166e752546f357 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 ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix integer overflow in debug message of walreceiver @ 2015-03-13 23:25 Tatsuo Ishii <ishii@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Tatsuo Ishii @ 2015-03-13 23:25 UTC (permalink / raw) To: pgsql-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_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/432478597957ccbd80aea8ad2befeb67db2f6564 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 ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix integer overflow in debug message of walreceiver @ 2015-03-13 23:25 Tatsuo Ishii <ishii@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Tatsuo Ishii @ 2015-03-13 23:25 UTC (permalink / raw) To: pgsql-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 ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix integer overflow in debug message of walreceiver @ 2015-03-13 23:25 Tatsuo Ishii <ishii@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Tatsuo Ishii @ 2015-03-13 23:25 UTC (permalink / raw) To: pgsql-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 ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2015-03-13 23:25 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-03-13 23:25 pgsql: Fix integer overflow in debug message of walreceiver Tatsuo Ishii <ishii@postgresql.org> 2015-03-13 23:25 pgsql: Fix integer overflow in debug message of walreceiver Tatsuo Ishii <ishii@postgresql.org> 2015-03-13 23:25 pgsql: Fix integer overflow in debug message of walreceiver Tatsuo Ishii <ishii@postgresql.org> 2015-03-13 23:25 pgsql: Fix integer overflow in debug message of walreceiver Tatsuo Ishii <ishii@postgresql.org>
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