Consistently set all fields in pg_stat_replication to null instead of 0
authorMagnus Hagander
Sun, 13 Dec 2015 15:53:38 +0000 (16:53 +0100)
committerMagnus Hagander
Sun, 13 Dec 2015 15:54:39 +0000 (16:54 +0100)
commit28c366789e78af82dfd89ecb6cc32724f58d6a1b
treed573147c1b482f9aae8c671464e3d846de25abe1
parenta9c56ff0e1f19fd6c2e48cfe44407c8cb8c4fbd5
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).
src/backend/replication/walsender.c