From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_getnameinfo_all() failed: Temporary failure in name resolution
Date: Sun, 26 Nov 2023 12:51:34 +0100
Message-ID: <20231126115134.htanqdchbmn4z2ic@hjp.at> (raw)
In-Reply-To: <CANzqJaBP7mD0Z35A7T2UO+MiAH4wWXWrb1bpU0qrVj1Z3gvzRQ@mail.gmail.com>
References: <CANzqJaDWmkNJefJqE+yoXMWvsP+K08QD8zj3EpNEHvDuoaXw3A@mail.gmail.com>
<7e79132a-0879-4382-823e-5a6b16d99dac@aklaver.com>
<CANzqJaCd80Maz+1sMjsWYh6fvsd+zD+z9Z3a9VNfQZ6_-gOMbA@mail.gmail.com>
<CAKFQuwYe6La_7eGuabErFs7zu688_pBZs8WpRvaRTKT8h2L34g@mail.gmail.com>
<CANzqJaBP7mD0Z35A7T2UO+MiAH4wWXWrb1bpU0qrVj1Z3gvzRQ@mail.gmail.com>
On 2023-11-24 16:39:57 -0500, Ron Johnson wrote:
> On Fri, Nov 24, 2023 at 4:26 PM David G. Johnston <david.g.johnston@gmail.com>
> wrote:
>
> On Friday, November 24, 2023, Ron Johnson <ronljohnsonjr@gmail.com> wrote:
>
>
> The second "way" sounds interesting, but what is it filled with?
With "???"
(which isn't very helpful. I would have hoped it's filled in with a
representation of the IP address)
> What does it matter? It’s an internal detail that apparently gets exposed
> as [unknown] appearing in your log file where the client ip address would
> normally be.
>
>
> Because I'd hope that the log file would tell me the errant host name.
The error message says that the host name could not be determined
because of a DNS error. So obviously it can't tell you the host name.
It could tell you the IP address, though.
> I added "log_hostname = on" to postgresql.conf earlier in the day.
> When I commented that out, the errors stopped happening.
>
>
> This makes sense.
>
>
> But is not explanatory. I want to see host names in the log file when
> possible, not just IP addresses.
So now that you have IP addresses again, are there any for which a
reverse lookup doesn't work?
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: hjp-pgsql@hjp.at
Subject: Re: pg_getnameinfo_all() failed: Temporary failure in name resolution
In-Reply-To: <20231126115134.htanqdchbmn4z2ic@hjp.at>
References: <CANzqJaDWmkNJefJqE+yoXMWvsP+K08QD8zj3EpNEHvDuoaXw3A@mail.gmail.com> <7e79132a-0879-4382-823e-5a6b16d99dac@aklaver.com> <CANzqJaCd80Maz+1sMjsWYh6fvsd+zD+z9Z3a9VNfQZ6_-gOMbA@mail.gmail.com> <CAKFQuwYe6La_7eGuabErFs7zu688_pBZs8WpRvaRTKT8h2L34g@mail.gmail.com> <CANzqJaBP7mD0Z35A7T2UO+MiAH4wWXWrb1bpU0qrVj1Z3gvzRQ@mail.gmail.com> <20231126115134.htanqdchbmn4z2ic@hjp.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox