pgsql: Fix integer overflow in debug message of walreceiver

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема pgsql: Fix integer overflow in debug message of walreceiver
Дата
Msg-id E1YWYwy-0001Hd-HA@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Document the new custom scan APIs.
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: pgsql: Fix integer overflow in debug message of walreceiver