]> granicus.if.org Git - postgresql/commit
Fix integer overflow in debug message of walreceiver
authorTatsuo Ishii <ishii@postgresql.org>
Fri, 13 Mar 2015 23:16:50 +0000 (08:16 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Fri, 13 Mar 2015 23:22:18 +0000 (08:22 +0900)
commit4909cb59df40a011b041ce97a68e4d73a54da6ee
tree6bfc09c91f65240c786c4b41db9cdd236c573811
parent590fc5d96f8b880fd41c4992dab73ec47f90eca4
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).
src/backend/replication/walreceiver.c
src/backend/replication/walreceiverfuncs.c