Re: How to determine server's own IP address? inet_server_addr not working

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Guyren Howe <guyren(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: How to determine server's own IP address? inet_server_addr not working
Date: 2021-02-21 23:41:38
Message-ID: CAKFQuwZZ+xOhPpUa6wQ+uaqcsMXAccsyM4UdeL55GYE=L_58vA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Feb 21, 2021 at 4:38 PM Guyren Howe <guyren(at)gmail(dot)com> wrote:

> The documentation says that inet_server_addr() does this, but on our
> servers it is returning nothing.
>

"Returns the IP address on which the server accepted the current
connection, or NULL if the current connection is via a Unix-domain socket."

You will need to demonstrate that the connection you are checking from
isn't being made via a Unix-domain socket.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2021-02-22 00:42:50 Re: Script checking to see what database it's connected to
Previous Message Guyren Howe 2021-02-21 23:38:21 How to determine server's own IP address? inet_server_addr not working