Oh, one other thing: pg_getnameinfo_all is perfectly capable of dealing with a Unix-socket address, so I think you should drop the tests on ss_family and let pg_getnameinfo_all be in charge of producing "[local]" for that case.
regards, tom lane
Oh, one other thing: pg_getnameinfo_all is perfectly capable of dealing with a Unix-socket address, so I think you should drop the tests on ss_family and let pg_getnameinfo_all be in charge of producing "[local]" for that case.
regards, tom lane