• Magnus Hagander's avatar
    Report pg_hba line number and contents when users fail to log in · 7f49a67f
    Magnus Hagander authored
    Instead of just reporting which user failed to log in, log both the
    line number in the active pg_hba.conf file (which may not match reality
    in case the file has been edited and not reloaded) and the contents of
    the matching line (which will always be correct), to make it easier
    to debug incorrect pg_hba.conf files.
    
    The message to the client remains unchanged and does not include this
    information, to prevent leaking security sensitive information.
    
    Reviewed by Tom Lane and Dean Rasheed
    7f49a67f
hba.c 58.7 KB