Re: Logging which local address was connected to in log_line_prefix - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Re: Logging which local address was connected to in log_line_prefix
Date
Msg-id CAKAnmmLKiYT_vUfDejH8OKheTwU+DGQztH5zMTbWsJ_=4p3P2Q@mail.gmail.com
Whole thread Raw
In response to Re: Logging which local address was connected to in log_line_prefix  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Thanks for all the feedback. Please find attached a version which prints "[none]" as the default value, "[local]" for a socket, and otherwise whatever pg_getnameinfo_all spits out. I cleaned up the coding, respected padding, removed the family checks, and expanded the docs a tiny bit to give the reader more context as to what "local address" means. I also looked into alternatives to the term "local address" but that still seems the most correct and commonly used term.

I have not attempted the caching change yet.

Cheers,
Greg

--
Enterprise Postgres Software Products & Tech Support

Attachment

pgsql-hackers by date:

Previous
From: Sri Keerthi
Date:
Subject: Deadlock detected while executing concurrent insert queries on same table
Next
From: Nikolay Shaplov
Date:
Subject: Re: vacuum_truncate configuration parameter and isset_offset