From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | "Tefft, Michael J" <Michael(dot)J(dot)Tefft(at)snapon(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Capturing both IP address and hostname in the log |
Date: | 2025-04-10 15:22:56 |
Message-ID: | 97cfc252-9a26-489e-b458-999ac5589224@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On 4/10/25 05:22, Tefft, Michael J wrote:
> The documentation for log_hostname says:
>
> log_hostname (boolean)
>
> By default, connection log messages only show the IP address of the
> connecting host. Turning this parameter on causes logging of the host
> name as well. Note that depending on your host name resolution setup
> this might impose a non-negligible performance penalty. This parameter
> can only be set in the postgresql.conf file or on the server command line.
>
> https://www.postgresql.org/docs/14/runtime-config-logging.html
> <https://www.postgresql.org/docs/14/runtime-config-logging.html>
>
> We have set log_hostname ON and we get hostname reported – but we do not
> get IP address. We would like to capture both.
>
> Since the doc says “Turning this parameter on causes logging of the host
> name **as well**” we were hoping we would capture both, but we are not
> getting what we expect.
>
> Is there a way to capture both IP address and hostname in the log
> messages? Or must we choose “one or the ootehr”?
I see the same thing. It seems either or.
>
> Thanks,
>
> Mike Tefft
>
> (We are using PG14 and PG16, but the docs say the same thing, as does PG17)
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2025-04-10 15:38:18 | Re: Interesting case of IMMUTABLE significantly hurting performance |
Previous Message | Tom Lane | 2025-04-10 14:33:15 | Re: Meson and Numa: C header not found |
From | Date | Subject | |
---|---|---|---|
Next Message | Xuneng Zhou | 2025-04-10 15:43:20 | Re: Proposal: Limitations of palloc inside checkpointer |
Previous Message | Fujii Masao | 2025-04-10 15:17:51 | Re: Correct documentation for protocol version |