Re: Logging which local address was connected to in log_line_prefix
From:
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To:
Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Cc:
Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>, david(at)pgmasters(dot)net,
Peter Eisentraut <peter(at)eisentraut(dot)org>,
Cary Huang <cary(dot)huang(at)highgo(dot)ca>,
"pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject:
Re: Logging which local address was connected to in log_line_prefix
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.