Consistently set all fields in pg_stat_replication to null instead of 0

Magnus Hagander <magnus@hagander.net>

Commit: 28c366789e78af82dfd89ecb6cc32724f58d6a1b
Author: Magnus Hagander <magnus@hagander.net>
Date: 2015-12-13T15:54:39Z
Releases: 9.5.0
Consistently set all fields in pg_stat_replication to null instead of 0

Previously the "sent" field would be set to 0 and all other xlog
pointers be set to NULL if there were no valid values (such as when
in a backup sending walsender).

Files

PathChange+/−
src/backend/replication/walsender.c modified +3 −0