• Tom Lane's avatar
    Fix bugs in manipulation of PgBackendStatus.st_clienthostname. · 682c5bbe
    Tom Lane authored
    Initialization of this field was not being done according to the
    st_changecount protocol (it has to be done within the changecount increment
    range, not outside).  And the test to see if the value should be reported
    as null was wrong.  Noted while perusing uses of Port.remote_hostname.
    
    This was wrong from the introduction of this code (commit 4a25bc14),
    so back-patch to 9.1.
    682c5bbe
pgstatfuncs.c 42.3 KB